Make sure channels are dumped on SIGINT

This commit is contained in:
Calvin Montgomery 2013-07-19 22:07:25 -04:00
parent d56d46c608
commit 0c26f68f1c
1 changed files with 1 additions and 2 deletions

View File

@ -182,6 +182,5 @@ if(!Config.DEBUG) {
Logger.errlog.log(err.stack); Logger.errlog.log(err.stack);
}); });
process.on("exit", Server.shutdown); process.on("SIGINT", Server.shutdown);
process.on("SIGINT", function () { process.exit(0); });
} }