diff --git a/src/client/websocket/WebSocketManager.js b/src/client/websocket/WebSocketManager.js index 3c0f45edc..6c8266e4e 100644 --- a/src/client/websocket/WebSocketManager.js +++ b/src/client/websocket/WebSocketManager.js @@ -307,7 +307,11 @@ class WebSocketManager extends EventEmitter { * Tries to reconnect the client, changing the status to Constants.Status.RECONNECTING. */ tryReconnect() { - if (this.status === Constants.Status.RECONNECTING || this.status === Constants.Status.CONNECTING) return; + if ( + this.status === Constants.Status.RECONNECTING || + this.status === Constants.Status.CONNECTING || + !this.client.token + ) return; this.status = Constants.Status.RECONNECTING; this.ws.close(); this.packetManager.handleQueue();