nope i was right the first time

This commit is contained in:
Amish Shah
2017-04-22 21:23:20 +01:00
parent 3465a154d5
commit 26069a44e2

View File

@@ -153,7 +153,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 || 60e3)); this.client.setTimeout(this.doQueue.bind(this), Date.now() + (this._remainingReset || 120e3));
return; return;
} }
this._remaining--; this._remaining--;