Webpack build for branch master: eec79b5fd0

This commit is contained in:
Travis CI 2017-04-22 20:18:50 +00:00
parent d0ffaa9d9e
commit 2e824f67f2
2 changed files with 5 additions and 3 deletions

View file

@ -23755,6 +23755,8 @@ class WebSocketManager extends EventEmitter {
this.lastHeartbeatAck = true; this.lastHeartbeatAck = true;
this._remainingReset = 0;
this._trace = []; this._trace = [];
this.resumeStart = -1; this.resumeStart = -1;
} }
@ -23786,7 +23788,7 @@ class WebSocketManager extends EventEmitter {
this._connect(gateway); this._connect(gateway);
this.first = false; this.first = false;
} else { } else {
this.client.setTimeout(() => this._connect(gateway), 5500); this.client.setTimeout(() => this._connect(gateway), 7500);
} }
} }
@ -23837,7 +23839,7 @@ class WebSocketManager extends EventEmitter {
const item = this._queue[0]; const item = this._queue[0];
if (!(this.ws.readyState === WebSocketConnection.WebSocket.OPEN && item)) return; if (!(this.ws.readyState === WebSocketConnection.WebSocket.OPEN && item)) return;
if (this.remaining === 0) { if (this.remaining === 0) {
this.client.setTimeout(this.doQueue.bind(this), Date.now() - this.remainingReset); this.client.setTimeout(this.doQueue.bind(this), Date.now() + (this._remainingReset || 120e3));
return; return;
} }
this._remaining--; this._remaining--;

File diff suppressed because one or more lines are too long