mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04: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...");
|
console.log("graceful shutdown...");
|
||||||
|
|
||||||
// do the db shutdown
|
// do the db shutdown
|
||||||
db.db.doShutdown(function() {
|
db.doShutdown().then(function() {
|
||||||
console.log("db sucessfully closed.");
|
console.log("db sucessfully closed.");
|
||||||
|
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue