2
2
mirror of https://git.coolaj86.com/coolaj86/telebit.js.git synced 2025-03-03 15:10:45 +00:00

handle sigint

This commit is contained in:
AJ ONeal 2016-09-30 02:41:39 -04:00
parent 442283f42c
commit ce92e22f12

View File

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