Merge pull request #1622 from nymtech/jon/fix/shutdown-in-gateway-client

gateway-client: fix shutdown
This commit is contained in:
Jon Häggblad
2022-09-14 17:00:48 +02:00
committed by GitHub
@@ -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! {