Fix missing return statement. Was logging an error even if connection succeed.
This commit is contained in:
parent
46653f06ff
commit
95fa33a488
@ -106,13 +106,15 @@ public abstract class AbstractClientWS implements AbstractWS {
|
|||||||
isConnecting = false;
|
isConnecting = false;
|
||||||
if (ws != null) {
|
if (ws != null) {
|
||||||
socket.set(ws);
|
socket.set(ws);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ex instanceof IOException) {
|
if (ex instanceof IOException) {
|
||||||
reconnectIfNecessary();
|
reconnectIfNecessary();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
logError("Error connecting (not trying to reconnect even if asked): ", ex);
|
autoReconnect = false;
|
||||||
|
logError("Error connecting (not trying to reconnect even if asked)", ex);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user