mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 06:25:57 +00:00
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) {
|
||||
return;
|
||||
}
|
||||
process.send({result: constants.process.log, message: messages, type});
|
||||
this.send({result: constants.process.log, message: messages, type});
|
||||
}
|
||||
|
||||
send() {
|
||||
if (!process.connected) {
|
||||
return;
|
||||
}
|
||||
process.send(...arguments);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user