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 ce300d5..5f50724 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 @@ -129,6 +129,8 @@ public abstract class AbstractClientWS implements AbstractWS { return; } } + if (ex instanceof CompletionException) + ex = ex.getCause(); if (ex instanceof IOException) { reconnectIfNecessary(); }