From 9da830e8959393dc757d3b87478b9e5b8ea695f1 Mon Sep 17 00:00:00 2001 From: Andreas Madsen Date: Tue, 7 Feb 2012 21:10:11 +0100 Subject: [PATCH] child_process: stop .disconnect() call if channel is diconnected --- lib/child_process.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/child_process.js b/lib/child_process.js index 9c1193d..4b5cbbe 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -142,6 +142,7 @@ function setupChannel(target, channel) { target.disconnect = function() { if (!this.connected) { this.emit('error', new Error('IPC channel is already disconnected')); + return; } // do not allow messages to be written -- 2.7.4