diff --git a/lib/distributor.js b/lib/distributor.js index a8e8381..15456a0 100644 --- a/lib/distributor.js +++ b/lib/distributor.js @@ -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;