diff options
author | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-08-18 20:54:04 +0100 |
---|---|---|
committer | Peter 'Pita' Martischka <petermartischka@googlemail.com> | 2011-08-18 20:54:04 +0100 |
commit | ad1e8fb4f82bd80d381ef53c68d3db8c87c352b3 (patch) | |
tree | 750159f3ba54fc204fe9c7c004edbffbe2e0bce4 | |
parent | 2dd82f82de5e2ea9452bb8f3acccb979239ed39d (diff) | |
download | etherpad-lite-ad1e8fb4f82bd80d381ef53c68d3db8c87c352b3.zip |
limit the graceful shutdown time to 3 seconds
-rw-r--r-- | node/server.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node/server.js b/node/server.js index a31f6a0f..db16f834 100644 --- a/node/server.js +++ b/node/server.js @@ -378,6 +378,10 @@ async.waterfall([ process.exit(0); }); + + setTimeout(function(){ + process.exit(1); + }, 3000); } //connect graceful shutdown with sigint and uncaughtexception |