From 355d3e5dea7bb2539882b68758ee74fc5696bcd3 Mon Sep 17 00:00:00 2001 From: oleg Date: Thu, 9 Jul 2015 00:19:33 +0300 Subject: [PATCH] better distributor queue processing --- lib/distributor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;