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 bff3134..c5d54b4 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 @@ -173,10 +173,7 @@ public abstract class AbstractClientWS implements AbstractWS { throw ThrowableUtil.uncheck(ce.getCause(), false); } } catch (IOException ioe) { - synchronized (socket) { - socket.set(null); - reconnectIfNecessary(); - } + receiveListener.onError(socket.get(), ioe); throw ioe; }