mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-12-03 00:11:05 +01:00
Merge pull request #1033 from marcelklehr/fix/shutdown-on-middlware-error
Don't shut down the whole server, if error handling middleware is called...
This commit is contained in:
commit
c0a2202e34
@ -38,7 +38,6 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||||||
args.app.error(function(err, req, res, next){
|
args.app.error(function(err, req, res, next){
|
||||||
res.send(500);
|
res.send(500);
|
||||||
console.error(err.stack ? err.stack : err.toString());
|
console.error(err.stack ? err.stack : err.toString());
|
||||||
exports.gracefulShutdown();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
//connect graceful shutdown with sigint and uncaughtexception
|
//connect graceful shutdown with sigint and uncaughtexception
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user