mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 06:26:14 +02:00
Call shutdown() of msg network modules @ shutdown
This commit is contained in:
parent
b17bd15c46
commit
97c2e7adc0
2 changed files with 21 additions and 9 deletions
|
@ -100,10 +100,15 @@ function shutdownSystem() {
|
|||
},
|
||||
function stopEventScheduler(callback) {
|
||||
if(initServices.eventScheduler) {
|
||||
return initServices.eventScheduler.shutdown(callback);
|
||||
return initServices.eventScheduler.shutdown( () => {
|
||||
callback(null); // ignore err
|
||||
});
|
||||
} else {
|
||||
return callback(null);
|
||||
}
|
||||
},
|
||||
function stopMsgNetwork(callback) {
|
||||
require('./msg_network.js').shutdown(callback);
|
||||
}
|
||||
],
|
||||
() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue