Fix resuming sessions (fixes #699)

This commit is contained in:
Amish Shah
2016-09-25 15:03:48 +01:00
parent 761b8cfb8d
commit 534d7af8c3
4 changed files with 28 additions and 6 deletions

View File

@@ -72,11 +72,12 @@ class WebSocketPacketManager {
}
if (packet.op === Constants.OPCodes.INVALID_SESSION) {
this.ws.sessionID = null;
this.ws._sendNewIdentify();
return false;
}
if (this.ws.reconnecting) {
if (this.ws.status === Constants.Status.RECONNECTING) {
this.ws.reconnecting = false;
this.ws.checkIfReady();
}