From 9007c536ecec0dd89d5e36bf32d67b1da91b208b Mon Sep 17 00:00:00 2001 From: Brandon Nozaki Miller Date: Sat, 22 Aug 2015 22:56:51 -0700 Subject: [PATCH] fixes #34 --- node-ipc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-ipc.js b/node-ipc.js index 8f7fd5d..a725f5f 100644 --- a/node-ipc.js +++ b/node-ipc.js @@ -221,7 +221,7 @@ function connect(id,path,callback){ callback(); return; } - ipc.of[id].destroy(); + ipc.of[id].socket.destroy(); } ipc.of[id] = new Client(ipc.config,ipc.log); @@ -290,7 +290,7 @@ function connectNet(id,host,port,callback){ callback(); return; } - ipc.of[id].destroy(); + ipc.of[id].socket.destroy(); } ipc.of[id] = new Client(ipc.config,ipc.log);