Better handling of IOException on client websocket when trying to send a payload.

master
Marc Baloup 2023-08-15 00:57:49 +02:00
parent 45ab550d06
commit ae634ab560
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}