mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-21 12:35:05 +00:00
created prestart message: add 2 second delay before starting public games to allow all players to connect
This commit is contained in:
@@ -154,6 +154,10 @@ export function startWorker() {
|
||||
log.warn(`cannot update public game ${game.id}, ip: ${clientIP}`);
|
||||
return res.status(400);
|
||||
}
|
||||
if (game.hasStarted()) {
|
||||
log.warn(`cannot update game ${game.id} after it has started`);
|
||||
return res.status(400);
|
||||
}
|
||||
game.updateGameConfig({
|
||||
gameMap: req.body.gameMap,
|
||||
difficulty: req.body.difficulty,
|
||||
|
||||
Reference in New Issue
Block a user