mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Reconnect websockets after errors
This commit is contained in:
1 parent
07742843df
commit
bfddb40d73
1 file changed
+2
@@ -101,6 +101,7 @@ public final class SignalWebSocketHealthMonitor implements HealthMonitor {
|
||||
if (healthState.mismatchErrorTracker.addSample(System.currentTimeMillis())) {
|
||||
logger.warn("Received too many mismatch device errors, forcing new websockets.");
|
||||
signalWebSocket.forceNewWebSockets();
|
||||
signalWebSocket.connect();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -146,6 +147,7 @@ public final class SignalWebSocketHealthMonitor implements HealthMonitor {
|
||||
+ " needed by: "
|
||||
+ keepAliveRequiredSinceTime);
|
||||
signalWebSocket.forceNewWebSockets();
|
||||
signalWebSocket.connect();
|
||||
} else {
|
||||
signalWebSocket.sendKeepAlive();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user