Fix missing return statement. Was logging an error even if connection succeed.

This commit is contained in:
Marc Baloup 2023-03-20 22:49:57 +01:00
parent 46653f06ff
commit 95fa33a488

View File

@ -106,13 +106,15 @@ public abstract class AbstractClientWS implements AbstractWS {
isConnecting = false; isConnecting = false;
if (ws != null) { if (ws != null) {
socket.set(ws); socket.set(ws);
return;
} }
} }
if (ex instanceof IOException) { if (ex instanceof IOException) {
reconnectIfNecessary(); reconnectIfNecessary();
} }
else { else {
logError("Error connecting (not trying to reconnect even if asked): ", ex); autoReconnect = false;
logError("Error connecting (not trying to reconnect even if asked)", ex);
} }
}); });
} }