gateway-client: fix shutdown

This commit is contained in:
Jon Häggblad
2022-09-14 16:24:05 +02:00
parent 2f53e40355
commit 242a6d13af
@@ -309,6 +309,8 @@ impl GatewayClient {
async {
if let Some(mut s) = m_shutdown {
s.recv().await
} else {
std::future::pending::<()>().await
}
}
.fuse()
@@ -317,7 +319,7 @@ impl GatewayClient {
tokio::pin!(shutdown);
#[cfg(target_arch = "wasm32")]
let mut shutdown = Box::pin(async {}.fuse());
let mut shutdown = std::future::pending::<()>().fuse();
loop {
futures::select! {