0
0
Fork 0

Rename function to routineCheck

This commit is contained in:
Oliver-Akins 2021-01-06 17:16:51 -07:00
parent 2e8497c77d
commit 4195159003

View file

@ -27,19 +27,19 @@ export function processExit() {
}; };
export async function checkSocketConnections() { export async function routineCheck() {
/** /**
* This is the cleanup that occurs whenever a new game has been started * This is the cleanup that occurs whenever a new game has been started
*/ */
log.info(`[checkSocketConnections] Checking for games to clean up`) log.info(`[routineCheck] Checking for games to clean up`)
for (var gc in games) { for (var gc in games) {
let game = games[gc]; let game = games[gc];
if (!activeGame(game)) { if (!activeGame(game)) {
game.log.debug(`[checkSocketConnections] Deleting game`); game.log.debug(`[routineCheck] Deleting game`);
delete games[gc]; delete games[gc];
}; };
}; };
log.info(`[checkSocketConnections] Done cleaning up games`); log.info(`[routineCheck] Done cleaning up games`);
}; };