mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-21 21:17:25 +00:00
Fix spam-log on master disconnect (#447)
This commit is contained in:
parent
d9874b452e
commit
cabd220a66
@ -313,8 +313,9 @@ int main(int argc, char** argv) {
|
||||
if (!Game::server->GetIsConnectedToMaster()) {
|
||||
framesSinceMasterDisconnect++;
|
||||
|
||||
if (framesSinceMasterDisconnect >= 30) {
|
||||
Game::logger->Log("WorldServer", "Game loop running but no connection to master for 30 frames, shutting down");
|
||||
int framesToWaitForMaster = ready ? 10 : 200;
|
||||
if (framesSinceMasterDisconnect >= framesToWaitForMaster && !worldShutdownSequenceStarted) {
|
||||
Game::logger->Log("WorldServer", "Game loop running but no connection to master for %d frames, shutting down\n", framesToWaitForMaster);
|
||||
worldShutdownSequenceStarted = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user