From ce92e22f12182a4e4387139029f90ff9549dbfc3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 30 Sep 2016 02:41:39 -0400 Subject: [PATCH] handle sigint --- wsclient.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wsclient.js b/wsclient.js index d0d1c7e..c66d4b9 100644 --- a/wsclient.js +++ b/wsclient.js @@ -167,6 +167,7 @@ return; wstunneler.on('close', function () { console.log('closing tunnel...'); process.removeListener('exit', onExit); + process.removeListener('SIGINT', onExit); Object.keys(localclients).forEach(function (cid) { try { localclients[cid].end();