terminate properly

This commit is contained in:
Robin Appelman 2017-04-17 15:30:17 +02:00
commit 7dbb1e45cc

View file

@ -131,3 +131,10 @@ wsServer.on('request', function (request) {
} }
}); });
}); });
process.on('SIGINT', function () {
process.exit();
});
process.on('SIGTERM', function () {
process.exit();
});