Limit reconnect timeout

This commit is contained in:
Jannis Mattheis
2018-12-22 18:02:14 +01:00
parent b25c5c928a
commit 7da23cf94a

View File

@@ -153,7 +153,7 @@ public class WebSocketConnection {
return; return;
} }
int minutes = errorCount * 5 + 1; int minutes = Math.min(errorCount * 2 + 1, 20);
Log.i("WebSocket: trying to restart in " + minutes + " minute(s)"); Log.i("WebSocket: trying to restart in " + minutes + " minute(s)");