diff --git a/lib/queue.js b/lib/queue.js index 6d199c94a..ef935ec0e 100755 --- a/lib/queue.js +++ b/lib/queue.js @@ -548,8 +548,8 @@ Queue.prototype.close = function(doNotWaitJobs) { console.error(err); isReady = false; }) - .finally(() => this._clearTimers()) .then(() => isReady && this.pause(true, doNotWaitJobs)) + .finally(() => this._clearTimers()) .then(() => { if (!this.childPool) { return;