Skip to content
Browse files

Make sure the 'workers_up' event is always emitted on master process

  • Loading branch information...
1 parent d7c809f commit 7c45ed07d8949574a174c63b8735f0db7953e61f @mendezcode mendezcode committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/protos.js
View
4 lib/protos.js
@@ -718,9 +718,9 @@ Protos.prototype.startServer = function() {
} else {
- // app.server already available on `pre_init` event
+ // Worker or Master
- // Worker
+ if (cluster.isMaster) app.emit('workers_up', cluster.workers);
process.on('message', function(msg) {
app.emit('master_message', msg);

0 comments on commit 7c45ed0

Please sign in to comment.
Something went wrong with that request. Please try again.