]> nmode's Git Repositories - signal-cli/commitdiff
Unsubscribe in client after timeout
authorAsamK <asamk@gmx.de>
Thu, 17 Aug 2023 19:06:55 +0000 (21:06 +0200)
committerAsamK <asamk@gmx.de>
Thu, 17 Aug 2023 19:06:55 +0000 (21:06 +0200)
client/src/main.rs

index f4ab67f93afc3b7b332d279f1d665a6e0a2992ea..c840fd5ea9ce861fdb1cada7e4219a3ca968df8e 100644 (file)
@@ -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,