We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fdeb51 commit a2d6495Copy full SHA for a2d6495
lib/ConcurrencyQueue.js
@@ -47,7 +47,7 @@ ConcurrencyQueue.prototype.drain = function (jobId) {
47
this.emit('drained', job, jobId, this.currentStatus());
48
job = null;
49
if (this.waitingQ.length > 0) {
50
- this.release(this.waitingQ.pop());
+ this.release(this.waitingQ.shift());
51
}
52
this.checkEmpty();
53
} else {
0 commit comments