This commit is contained in:
Travis CI 2016-11-28 16:17:24 +00:00
parent 0f04e66e29
commit ccee29bf01
2 changed files with 3 additions and 3 deletions

View file

@ -20880,7 +20880,7 @@ class WebSocketManager extends EventEmitter {
* Tries to reconnect the client, changing the status to Constants.Status.RECONNECTING. * Tries to reconnect the client, changing the status to Constants.Status.RECONNECTING.
*/ */
tryReconnect() { tryReconnect() {
if (this.status === Constants.Status.RECONNECTING) return; if (this.status === Constants.Status.RECONNECTING || this.status === Constants.Status.CONNECTING) return;
this.status = Constants.Status.RECONNECTING; this.status = Constants.Status.RECONNECTING;
this.ws.close(); this.ws.close();
this.packetManager.handleQueue(); this.packetManager.handleQueue();

File diff suppressed because one or more lines are too long