You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.
Apparently cleanup() is called before transportDisconnected() and the second cleanup() call from reconnect() throws the exception. Also, you can't call disconnect() in onError(), or that will also cause a problem (and you don't need to). Hopefully, this will fix the issue:
diff --git "a/C:\\Users\\WxAp\\AppData\\Local\\Temp\\TortoiseGit\\IOCDCF7.tmp\\IOConnection-8f4c6b7-left.java" "b/C:\\ExternalLibs\\sources\\socket.io-java-client\\src\\io\\socket\\IOConnection.java"
index 420d0cc..3dc207b 100644
--- "a/C:\\Users\\WxAp\\AppData\\Local\\Temp\\TortoiseGit\\IOCDCF7.tmp\\IOConnection-8f4c6b7-left.java"+++ "b/C:\\ExternalLibs\\sources\\socket.io-java-client\\src\\io\\socket\\IOConnection.java"@@ -555,7 +555,7 @@ class IOConnection implements IOCallback {
*/
public void transportDisconnected() {
this.lastException = null;
- setState(STATE_INTERRUPTED);+ if (getState() != STATE_INVALID) setState(STATE_INTERRUPTED);
reconnect();
}
@@ -568,7 +568,7 @@ class IOConnection implements IOCallback {
*/
public void transportError(Exception error) {
this.lastException = error;
- setState(STATE_INTERRUPTED);+ if (getState() != STATE_INVALID) setState(STATE_INTERRUPTED);
reconnect();
}
The text was updated successfully, but these errors were encountered:
Apparently cleanup() is called before transportDisconnected() and the second cleanup() call from reconnect() throws the exception. Also, you can't call disconnect() in onError(), or that will also cause a problem (and you don't need to). Hopefully, this will fix the issue:
The text was updated successfully, but these errors were encountered: