This commit is contained in:
Koen Kanters
2019-05-20 20:43:25 +02:00
parent 18913a1577
commit 6adfdacb3c
+6 -1
View File
@@ -13,6 +13,11 @@ controller.start();
process.on('SIGINT', handleQuit);
process.on('SIGTERM', handleQuit);
let stopping = false;
function handleQuit() {
controller.stop(() => process.exit());
if (!stopping) {
stopping = true;
controller.stop(() => process.exit());
}
}