diff --git a/lib/process/processWrapper.js b/lib/process/processWrapper.js index 6096d9e5..3119f455 100644 --- a/lib/process/processWrapper.js +++ b/lib/process/processWrapper.js @@ -39,7 +39,10 @@ class ProcessWrapper { } setInterval(() => { try { - self.send({action: 'ping'}); + let result = self.send({action: 'ping'}); + if (!result) { + return error(); + } } catch (e) { error(); } @@ -71,9 +74,10 @@ class ProcessWrapper { send() { if (!process.connected) { - return; + return false; } process.send(...arguments); + return true; } kill() {