From c4dde0f4e2211d466c955ca30558ec1b4b290352 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 12 Oct 2022 15:35:28 +0200 Subject: [PATCH] :lipstick: --- crates/client/src/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/client/src/client.rs b/crates/client/src/client.rs index 32db5e940d..cc6bdf6279 100644 --- a/crates/client/src/client.rs +++ b/crates/client/src/client.rs @@ -663,7 +663,6 @@ impl Client { self.set_status(Status::Reconnecting, cx); } - let mut timeout = cx.background().timer(CONNECTION_TIMEOUT).fuse(); futures::select_biased! { connection = self.establish_connection(&credentials, cx).fuse() => { match connection { @@ -696,7 +695,7 @@ impl Client { } } } - _ = timeout => { + _ = cx.background().timer(CONNECTION_TIMEOUT).fuse() => { self.set_status(Status::ConnectionError, cx); Err(anyhow!("timed out trying to establish connection")) }