Less verbose client websocket when reconnecting

This commit is contained in:
Marc Baloup 2025-01-20 00:00:14 +01:00
parent f4d0ccca51
commit 07af67b33f

View File

@ -115,7 +115,7 @@ public abstract class AbstractClientWS implements AbstractWS {
synchronized (socket) { synchronized (socket) {
if (autoReconnect && !isConnecting && socket.get() == null) { if (autoReconnect && !isConnecting && socket.get() == null) {
try { try {
Thread.sleep(1000); Thread.sleep(2000);
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();
} }
@ -148,7 +148,7 @@ public abstract class AbstractClientWS implements AbstractWS {
ex = ex.getCause(); ex = ex.getCause();
if (ex instanceof IOException) { if (ex instanceof IOException) {
reconnectIfNecessary(); reconnectIfNecessary();
log("Unable to connect. Trying again...: " + ex); log("Can't connect. Trying again. " + ex);
} }
else { else {
autoReconnect = false; autoReconnect = false;