Skip to content

Commit

Permalink
restart websocket at first missing keepalive
Browse files Browse the repository at this point in the history
  • Loading branch information
fraukappayuwe authored Nov 19, 2024
1 parent 9502d4c commit e73644b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websocket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl SignalWebSocketProcess {
futures::select! {
_ = ka_interval.tick().fuse() => {
use prost::Message;
if self.outgoing_keep_alive_set.len() > 6 {
if self.outgoing_keep_alive_set.len() > 0 {
tracing::warn!("Websocket will be closed due to failed keepalives.");
if let Err(e) = self.ws.close(reqwest_websocket::CloseCode::Away, None).await {
tracing::debug!("Could not close WebSocket: {:?}", e);
Expand Down

0 comments on commit e73644b

Please sign in to comment.