Actually exit from the app when we're done cleaning up.
This commit is contained in:
parent
2141e8bb21
commit
e45a1a4b89
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ function clean_up() {
|
||||||
writeFileSync(`${db_dir}/${code}`, active_games[code].toJSON());
|
writeFileSync(`${db_dir}/${code}`, active_games[code].toJSON());
|
||||||
};
|
};
|
||||||
log.info(`Finished saving games to disk.`);
|
log.info(`Finished saving games to disk.`);
|
||||||
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Listen to the signals for the cleanup requirement
|
// Listen to the signals for the cleanup requirement
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue