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:
parent
442283f42c
commit
ce92e22f12
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user