From 1933451d2f9c48a7261628dfb719a867033bc047 Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Mon, 28 Nov 2016 16:14:34 +0000 Subject: [PATCH] fix reconnecting --- src/client/websocket/WebSocketManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/websocket/WebSocketManager.js b/src/client/websocket/WebSocketManager.js index 6493fc4dc..3726dc837 100644 --- a/src/client/websocket/WebSocketManager.js +++ b/src/client/websocket/WebSocketManager.js @@ -313,7 +313,7 @@ class WebSocketManager extends EventEmitter { * Tries to reconnect the client, changing the status to Constants.Status.RECONNECTING. */ 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.ws.close(); this.packetManager.handleQueue();