diff --git a/lib/process/processWrapper.js b/lib/process/processWrapper.js index 9b4fbe1d7..6f7e207a2 100644 --- a/lib/process/processWrapper.js +++ b/lib/process/processWrapper.js @@ -66,10 +66,16 @@ class ProcessWrapper { if (isHardSource) { return; } + if (!process.connected) { + return; + } process.send({result: constants.process.log, message: messages, type}); } send() { + if (!process.connected) { + return; + } process.send(...arguments); }