원본 프로젝트 : coolaj86/telebit.js
handle sigint
This commit is contained in:
부모
442283f42c
커밋
ce92e22f12
@ -167,6 +167,7 @@ return;
|
|||||||
wstunneler.on('close', function () {
|
wstunneler.on('close', function () {
|
||||||
console.log('closing tunnel...');
|
console.log('closing tunnel...');
|
||||||
process.removeListener('exit', onExit);
|
process.removeListener('exit', onExit);
|
||||||
|
process.removeListener('SIGINT', onExit);
|
||||||
Object.keys(localclients).forEach(function (cid) {
|
Object.keys(localclients).forEach(function (cid) {
|
||||||
try {
|
try {
|
||||||
localclients[cid].end();
|
localclients[cid].end();
|
||||||
|
|||||||
불러오는 중...
x
Reference in New Issue
Block a user