Skip to content

Commit 63a053a

Browse files
committed
feat: stop on disconnect from cast device
1 parent c6642dc commit 63a053a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

graphql/src/schema/devices.rs

+1
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ impl DevicesMutation {
198198
let io_device = ctx.data::<Arc<TokioMutex<CurrentDevice>>>().unwrap();
199199
let mut io_device = io_device.lock().await;
200200
if let Some(receiver) = io_device.receiver.as_mut() {
201+
receiver.stop().await?;
201202
receiver.disconnect()?;
202203
}
203204
match io_device.clear_receiver() {

0 commit comments

Comments
 (0)