Merge pull request #524 from embark-framework/disconnected_process_fix

don't send message if process isn't connected
This commit is contained in:
Iuri Matias 2018-06-13 15:37:19 -04:00 committed by GitHub
commit a4fc6999e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
/**