From b3f550ee68d0e9119bc3f7a22659d1cdbaa1ded8 Mon Sep 17 00:00:00 2001 From: AsamK Date: Thu, 17 Aug 2023 21:06:55 +0200 Subject: [PATCH] Unsubscribe in client after timeout --- client/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/main.rs b/client/src/main.rs index f4ab67f9..c840fd5e 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -47,6 +47,7 @@ async fn handle_command( println!("{v}"); } } + stream.unsubscribe().await?; Ok(Value::Null) } cli::CliCommands::AddDevice { uri } => client.add_device(cli.account, uri).await,