Fixes polling loop upon reconnect advice (fixes #438).

This commit is contained in:
Guillermo Rauch
2012-04-01 01:44:11 -03:00
parent 49ff307d38
commit f50146e20b

View File

@@ -80,6 +80,10 @@
this.onConnect();
}
if (packet.type == 'error' && packet.advice == 'reconnect') {
this.open = false;
}
this.socket.onPacket(packet);
return this;