Skip to content

Commit

Permalink
fix(close): clear timers after waiting jobs fixes #1415
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Jul 8, 2021
1 parent a6dad1c commit 77b319d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77b319d

Please sign in to comment.