mirror of
https://github.com/thelounge/thelounge
synced 2025-02-16 21:28:23 +00:00
Merge pull request #2937 from thelounge/xpaw/empty-storage-later
Empty storage directory after destroying all channels
This commit is contained in:
commit
6fb41b44d4
1 changed files with 5 additions and 5 deletions
|
@ -181,6 +181,11 @@ module.exports = function() {
|
|||
return;
|
||||
}
|
||||
|
||||
log.info("Exiting...");
|
||||
|
||||
// Close all client and IRC connections
|
||||
manager.clients.forEach((client) => client.quit());
|
||||
|
||||
if (Helper.config.prefetchStorage) {
|
||||
log.info("Clearing prefetch storage folder, this might take a while...");
|
||||
|
||||
|
@ -190,11 +195,6 @@ module.exports = function() {
|
|||
// Forcefully exit after 3 seconds
|
||||
suicideTimeout = setTimeout(() => process.exit(1), 3000);
|
||||
|
||||
log.info("Exiting...");
|
||||
|
||||
// Close all client and IRC connections
|
||||
manager.clients.forEach((client) => client.quit());
|
||||
|
||||
// Close http server
|
||||
server.close(() => {
|
||||
clearTimeout(suicideTimeout);
|
||||
|
|
Loading…
Add table
Reference in a new issue