child_process: fix typo in internal message event name

This commit is contained in:
Andreas Madsen 2012-01-11 09:02:51 +01:00 committed by Ben Noordhuis
parent 4d49469d0d
commit c8108aad83
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -47,7 +47,7 @@ if (process.argv[2] === 'child') {
});
var gotInternal;
child.once('inernalMessage', function(data) {
child.once('internalMessage', function(data) {
gotInternal = data;
});