Comparing version 0.5.4 to 0.5.5
@@ -372,5 +372,2 @@ var os = require('os'), | ||
}); | ||
this.restartQueue.push('restarted'); | ||
this.processRestartQueue(); | ||
@@ -396,7 +393,4 @@ }; | ||
Master.prototype._restartWorkerFromQueue = function() { | ||
while (typeof this.restartQueue[0] === 'string') { | ||
this.emit(this.restartQueue.shift()); | ||
} | ||
if (this.restartQueue.length === 0) { | ||
this.emit('restarted'); | ||
this._isRestartQueued = false; | ||
@@ -403,0 +397,0 @@ } else { |
@@ -410,3 +410,4 @@ var cluster = require('cluster'), | ||
if (this.options.exitThreshold && | ||
Date.now() - this.startTime < this.options.exitThreshold) { | ||
Date.now() - this.startTime < this.options.exitThreshold && | ||
! this.restarting) { | ||
this._sequentialDeaths++; | ||
@@ -413,0 +414,0 @@ } |
{ | ||
"name" : "luster", | ||
"version" : "0.5.4", | ||
"version" : "0.5.5", | ||
"description" : "Node.js cluster wrapper", | ||
@@ -5,0 +5,0 @@ "main" : "./lib/luster.js", |
Sorry, the diff of this file is not supported yet
110498
30
1988