Browse files

Ouch. My bad. Cluster master needs to listen for ALL fork events.

I blame the food poisoning.
  • Loading branch information...
1 parent 9121f00 commit 36c18e809d815e9ea2850913c2b492d731af987e @danmactough danmactough committed Mar 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/amino-gateway
View
2 bin/amino-gateway
@@ -58,7 +58,7 @@ if (cluster.isMaster) {
console.error('Maintenance mode', program.maintMode ? 'on' : 'off');
});
- cluster.once('fork', function (worker) {
+ cluster.on('fork', function (worker) {
function sendMaintMode (msg) {
if (msg === 'maintMode') {
worker.send('maintMode:' + (program.maintMode ? 'on' : 'off'));

0 comments on commit 36c18e8

Please sign in to comment.