node-worker-pool
Advanced tools
Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "node-worker-pool", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "q": "~0.9.7" |
@@ -138,9 +138,10 @@ "use strict"; | ||
this._isDestroyed = true; | ||
return Q.all(this._allPendingResponses).then(function() { | ||
return Q.all(allWorkers.map(function(worker) { | ||
return worker.destroy(); | ||
})); | ||
}); | ||
return Q.allSettled(this._allPendingResponses) | ||
.then(function() { | ||
return Q.all(allWorkers.map(function(worker) { | ||
return worker.destroy(); | ||
})); | ||
}); | ||
}; | ||
module.exports = WorkerPool; |
15023
370