don't send message if process isn't connected

This commit is contained in:
Iuri Matias 2018-06-13 14:56:26 -04:00
parent 977b472217
commit 8fe9ccedf2
1 changed files with 4 additions and 1 deletions

View File

@ -191,7 +191,10 @@ class ProcessLauncher {
* @return {void}
*/
send() {
this.process.send(...arguments);
if (!this.process.connected) {
return false;
}
return this.process.send(...arguments);
}
/**