💄
This commit is contained in:
parent
ec19f0f8e9
commit
c4dde0f4e2
1 changed files with 1 additions and 2 deletions
|
@ -663,7 +663,6 @@ impl Client {
|
||||||
self.set_status(Status::Reconnecting, cx);
|
self.set_status(Status::Reconnecting, cx);
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut timeout = cx.background().timer(CONNECTION_TIMEOUT).fuse();
|
|
||||||
futures::select_biased! {
|
futures::select_biased! {
|
||||||
connection = self.establish_connection(&credentials, cx).fuse() => {
|
connection = self.establish_connection(&credentials, cx).fuse() => {
|
||||||
match connection {
|
match connection {
|
||||||
|
@ -696,7 +695,7 @@ impl Client {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ = timeout => {
|
_ = cx.background().timer(CONNECTION_TIMEOUT).fuse() => {
|
||||||
self.set_status(Status::ConnectionError, cx);
|
self.set_status(Status::ConnectionError, cx);
|
||||||
Err(anyhow!("timed out trying to establish connection"))
|
Err(anyhow!("timed out trying to establish connection"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue