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-14 10:56:09 +02:00
co-authored by Max Brunsfeld
parent 27b3d11aa6
commit 201b923248
+1 -1
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;
}
}));
}