Actually exit from the app when we're done cleaning up.

This commit is contained in:
Oliver-Akins 2020-10-02 16:52:17 -06:00
parent 2141e8bb21
commit e45a1a4b89

View file

@ -35,6 +35,7 @@ function clean_up() {
writeFileSync(`${db_dir}/${code}`, active_games[code].toJSON());
};
log.info(`Finished saving games to disk.`);
process.exit(0);
}
// Listen to the signals for the cleanup requirement