Comparing version 2.4.1 to 2.5.0
@@ -395,3 +395,3 @@ const cluster = require('cluster'), | ||
if (this.inspectPort) { | ||
this._master.setup({inspectPort: this.inspectPort}) | ||
this._master.setup({inspectPort: this.inspectPort}); | ||
} | ||
@@ -436,2 +436,3 @@ /** @private */ | ||
this.stopping = true; | ||
const stopPid = this._worker && this.pid; | ||
@@ -445,3 +446,4 @@ setImmediate(() => { | ||
// Worker could die while suspend was in-flight, i.e. on endless loop, and _onStateStopped will drop _worker | ||
if (this._worker) { | ||
// Or a new one could be started already | ||
if (this._worker && (this.pid === stopPid)) { | ||
this._worker.disconnect(); | ||
@@ -448,0 +450,0 @@ } |
{ | ||
"name": "luster", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "Node.js cluster wrapper", | ||
@@ -5,0 +5,0 @@ "main": "./lib/luster.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88704
2236