Handle CompletionException in websocket client
This commit is contained in:
@@ -129,6 +129,8 @@ public abstract class AbstractClientWS implements AbstractWS {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (ex instanceof CompletionException)
|
||||||
|
ex = ex.getCause();
|
||||||
if (ex instanceof IOException) {
|
if (ex instanceof IOException) {
|
||||||
reconnectIfNecessary();
|
reconnectIfNecessary();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user