mirror of
https://github.com/demostf/sync.git
synced 2026-06-03 10:34:06 +02:00
terminate properly
This commit is contained in:
parent
013a544250
commit
7dbb1e45cc
1 changed files with 7 additions and 0 deletions
7
sync.ts
7
sync.ts
|
|
@ -131,3 +131,10 @@ wsServer.on('request', function (request) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.on('SIGINT', function () {
|
||||||
|
process.exit();
|
||||||
|
});
|
||||||
|
process.on('SIGTERM', function () {
|
||||||
|
process.exit();
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue