Handle CompletionException in websocket client

This commit is contained in:
Marc Baloup 2023-03-21 19:20:29 +01:00
parent 87b9ffcc37
commit 55556b0714

View File

@ -129,6 +129,8 @@ public abstract class AbstractClientWS implements AbstractWS {
return;
}
}
if (ex instanceof CompletionException)
ex = ex.getCause();
if (ex instanceof IOException) {
reconnectIfNecessary();
}