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();