Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
child_process: fix typo in internal message event name
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMadsen authored and bnoordhuis committed Jan 11, 2012
1 parent 4d49469 commit c8108aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cluster.js
Expand Up @@ -295,7 +295,7 @@ function Worker(customEnv) {
}

// Internal message: handle message
this.process.on('inernalMessage', function(message, handle) {
this.process.on('internalMessage', function(message, handle) {
debug('recived: ', message);

// relay to handleMessage
Expand Down
2 changes: 1 addition & 1 deletion test/simple/test-child-process-internal.js
Expand Up @@ -47,7 +47,7 @@ if (process.argv[2] === 'child') {
});

var gotInternal;
child.once('inernalMessage', function(data) {
child.once('internalMessage', function(data) {
gotInternal = data;
});

Expand Down

0 comments on commit c8108aa

Please sign in to comment.