From 8fe9ccedf269c72867aec3d899e192c8cacaea08 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 13 Jun 2018 14:56:26 -0400 Subject: [PATCH] don't send message if process isn't connected --- lib/process/processLauncher.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/process/processLauncher.js b/lib/process/processLauncher.js index 35c4e2c5..9c2c1b1d 100644 --- a/lib/process/processLauncher.js +++ b/lib/process/processLauncher.js @@ -191,7 +191,10 @@ class ProcessLauncher { * @return {void} */ send() { - this.process.send(...arguments); + if (!this.process.connected) { + return false; + } + return this.process.send(...arguments); } /**