child_process: stop .disconnect() call if channel is diconnected
This commit is contained in:
parent
02c1cb54aa
commit
9da830e895
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user