diff --git a/pandalib-ws-client/src/main/java/fr/pandacube/lib/ws/client/AbstractClientWS.java b/pandalib-ws-client/src/main/java/fr/pandacube/lib/ws/client/AbstractClientWS.java index e39853d..16ff2a7 100644 --- a/pandalib-ws-client/src/main/java/fr/pandacube/lib/ws/client/AbstractClientWS.java +++ b/pandalib-ws-client/src/main/java/fr/pandacube/lib/ws/client/AbstractClientWS.java @@ -106,13 +106,15 @@ public abstract class AbstractClientWS implements AbstractWS { isConnecting = false; if (ws != null) { socket.set(ws); + return; } } if (ex instanceof IOException) { reconnectIfNecessary(); } 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); } }); }