Webpack build for branch master: c5e2ea7458

This commit is contained in:
Travis CI 2017-04-12 04:33:49 +00:00
parent 65958440e9
commit 87cda7ca78
2 changed files with 7 additions and 3 deletions

View file

@ -23677,7 +23677,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();

File diff suppressed because one or more lines are too long