Permalink
Browse files

Only relay if there is a send method. Closes #54

  • Loading branch information...
1 parent 708ea94 commit 4f374f0486fc2c6c91d79d27fce1b174349b6f64 @fgnass committed Nov 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 node-dev
View
@@ -55,7 +55,7 @@ function start() {
stdio: [0, 1, 2, 'ipc']
})
.on('message', function(m) {
- process.send(m)
+ if (process.send) process.send(m)
})
.on('exit', function(code) {
if (code === 101) process.nextTick(start)

0 comments on commit 4f374f0

Please sign in to comment.