mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 19:46:43 +00:00
bugfix: use gameCreationRate to schedule games
This commit is contained in:
@@ -77,7 +77,8 @@ export async function startMaster() {
|
||||
})
|
||||
.finally(() => {
|
||||
// Schedule next run with the current config value
|
||||
const currentLifetime = config.lobbyLifetime(isHighTrafficTime());
|
||||
const currentLifetime =
|
||||
config.gameCreationRate(isHighTrafficTime());
|
||||
timeoutId = setTimeout(scheduleLobbies, currentLifetime);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user