mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-10 14:46:20 +02:00
errorhandling.js: use promise db.doShutdown interface
This commit is contained in:
parent
b664eb488c
commit
ebb8a64e3c
@ -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…
x
Reference in New Issue
Block a user