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); }