From 7656001cb5e7f3024cdf51ca8fbf0f460fdae016 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 2 Oct 2012 20:11:18 +0200 Subject: [PATCH] Don't shut down the whole server, if error handling middleware is called. The errors passed to error handling middleware aren't that severe, so it's fine to just stay alive... --- src/node/hooks/express/errorhandling.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node/hooks/express/errorhandling.js b/src/node/hooks/express/errorhandling.js index cb8c58987..4f5dad4f6 100644 --- a/src/node/hooks/express/errorhandling.js +++ b/src/node/hooks/express/errorhandling.js @@ -38,7 +38,6 @@ exports.expressCreateServer = function (hook_name, args, cb) { args.app.error(function(err, req, res, next){ res.send(500); console.error(err.stack ? err.stack : err.toString()); - exports.gracefulShutdown(); }); //connect graceful shutdown with sigint and uncaughtexception