Empty storage directory after destroying all channels
This commit is contained in:
parent
0995f95296
commit
ed10e14b47
@ -181,6 +181,11 @@ module.exports = function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.info("Exiting...");
|
||||||
|
|
||||||
|
// Close all client and IRC connections
|
||||||
|
manager.clients.forEach((client) => client.quit());
|
||||||
|
|
||||||
if (Helper.config.prefetchStorage) {
|
if (Helper.config.prefetchStorage) {
|
||||||
log.info("Clearing prefetch storage folder, this might take a while...");
|
log.info("Clearing prefetch storage folder, this might take a while...");
|
||||||
|
|
||||||
@ -190,11 +195,6 @@ module.exports = function() {
|
|||||||
// Forcefully exit after 3 seconds
|
// Forcefully exit after 3 seconds
|
||||||
suicideTimeout = setTimeout(() => process.exit(1), 3000);
|
suicideTimeout = setTimeout(() => process.exit(1), 3000);
|
||||||
|
|
||||||
log.info("Exiting...");
|
|
||||||
|
|
||||||
// Close all client and IRC connections
|
|
||||||
manager.clients.forEach((client) => client.quit());
|
|
||||||
|
|
||||||
// Close http server
|
// Close http server
|
||||||
server.close(() => {
|
server.close(() => {
|
||||||
clearTimeout(suicideTimeout);
|
clearTimeout(suicideTimeout);
|
||||||
|
Loading…
Reference in New Issue
Block a user