Unsubscribe in client after timeout

This commit is contained in:
AsamK 2023-08-17 21:06:55 +02:00
parent 29923cf930
commit b3f550ee68

View file

@ -47,6 +47,7 @@ async fn handle_command(
println!("{v}"); println!("{v}");
} }
} }
stream.unsubscribe().await?;
Ok(Value::Null) Ok(Value::Null)
} }
cli::CliCommands::AddDevice { uri } => client.add_device(cli.account, uri).await, cli::CliCommands::AddDevice { uri } => client.add_device(cli.account, uri).await,