mirror of https://github.com/embarklabs/embark.git
Merge pull request #489 from embark-framework/avoid_zombies
avoid sending messages to disconnected processes
This commit is contained in:
commit
e2f2c84aa2
|
@ -66,10 +66,13 @@ class ProcessWrapper {
|
||||||
if (isHardSource) {
|
if (isHardSource) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
process.send({result: constants.process.log, message: messages, type});
|
this.send({result: constants.process.log, message: messages, type});
|
||||||
}
|
}
|
||||||
|
|
||||||
send() {
|
send() {
|
||||||
|
if (!process.connected) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
process.send(...arguments);
|
process.send(...arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue