mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
errorhandling.js: use promise db.doShutdown interface
This commit is contained in:
parent
b664eb488c
commit
ebb8a64e3c
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ exports.gracefulShutdown = function(err) {
|
|||
console.log("graceful shutdown...");
|
||||
|
||||
// do the db shutdown
|
||||
db.db.doShutdown(function() {
|
||||
db.doShutdown().then(function() {
|
||||
console.log("db sucessfully closed.");
|
||||
|
||||
process.exit(0);
|
||||
|
|
Loading…
Reference in a new issue