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}
|
* @return {void}
|
||||||
*/
|
*/
|
||||||
send() {
|
send() {
|
||||||
this.process.send(...arguments);
|
if (!this.process.connected) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this.process.send(...arguments);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue