mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Merge pull request #524 from embark-framework/disconnected_process_fix
don't send message if process isn't connected
This commit is contained in:
commit
a4fc6999e4
@ -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