Handle CompletionException in websocket client
This commit is contained in:
parent
87b9ffcc37
commit
55556b0714
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user