mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 06:45:08 +00:00
better distributor queue processing
This commit is contained in:
parent
75799493c0
commit
355d3e5dea
@ -50,12 +50,10 @@ Distributor.prototype._runNext = function(callback) {
|
||||
});
|
||||
|
||||
// quit if we have no suitable project
|
||||
if (queueItemIndex) {
|
||||
if (queueItemIndex === -1) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
this.pass(node);
|
||||
|
||||
var queueItem = self.queue.splice(queueItemIndex, 1)[0],
|
||||
build = queueItem.build;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user