mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-02 10:25:21 +00:00
don't send message if process isn't connected
This commit is contained in:
parent
977b472217
commit
8fe9ccedf2
@ -191,7 +191,10 @@ class ProcessLauncher {
|
||||
* @return {void}
|
||||
*/
|
||||
send() {
|
||||
this.process.send(...arguments);
|
||||
if (!this.process.connected) {
|
||||
return false;
|
||||
}
|
||||
return this.process.send(...arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user