clusterhub
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -172,6 +172,4 @@ var cluster = require('cluster') | ||
} | ||
worker.on('online', ononline); | ||
worker.on('message', onmessage); | ||
worker.once('exit', function onexit() { | ||
function onexit() { | ||
workers.splice(workers.indexOf(obj), 1); | ||
@@ -181,5 +179,10 @@ worker.removeListener('online', obj.ononline); | ||
return false; | ||
}); | ||
} | ||
worker.on('online', ononline); | ||
worker.on('message', onmessage); | ||
worker.on('exit', onexit); | ||
worker.on('disconnect', onexit); | ||
return worker; | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["cluster", "load balance", "database", "multi process", "sync"], | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
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
25325
765