From 0c26f68f1c1c61e01911e43bb8947098c24a39fc Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Fri, 19 Jul 2013 22:07:25 -0400 Subject: [PATCH] Make sure channels are dumped on SIGINT --- server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.js b/server.js index 530ba79f..6559b51c 100644 --- a/server.js +++ b/server.js @@ -182,6 +182,5 @@ if(!Config.DEBUG) { Logger.errlog.log(err.stack); }); - process.on("exit", Server.shutdown); - process.on("SIGINT", function () { process.exit(0); }); + process.on("SIGINT", Server.shutdown); }