Skip to content

Commit

Permalink
fix: whenCurrentJobsFinished should wait for all jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabegorelick committed Dec 11, 2019
1 parent 4517dab commit ebacd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/queue.js
Expand Up @@ -1191,7 +1191,7 @@ Queue.prototype.whenCurrentJobsFinished = function() {
return this.bclient.connect();
});

return Promise.all([this.processing[0]]).then(() => {
return Promise.all(this.processing).then(() => {
return forcedReconnection;
});
};
Expand Down

0 comments on commit ebacd76

Please sign in to comment.