Don't panic if heartbeat messages can't be sent

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-09-13 19:59:39 +02:00
parent 27b3d11aa6
commit 201b923248

View file

@ -141,7 +141,7 @@ impl Client {
state._maintain_connection = Some(cx.foreground().spawn(async move {
loop {
foreground.timer(heartbeat_interval).await;
this.request(proto::Ping {}).await.unwrap();
let _ = this.request(proto::Ping {}).await;
}
}));
}