Skip to content

Commit a2d6495

Browse files
author
node9
committed
Bugfix: Change .pop() to .shift()
1 parent 6fdeb51 commit a2d6495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ConcurrencyQueue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ConcurrencyQueue.prototype.drain = function (jobId) {
4747
this.emit('drained', job, jobId, this.currentStatus());
4848
job = null;
4949
if (this.waitingQ.length > 0) {
50-
this.release(this.waitingQ.pop());
50+
this.release(this.waitingQ.shift());
5151
}
5252
this.checkEmpty();
5353
} else {

0 commit comments

Comments
 (0)