mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 13:37:22 +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()) {
|
if (!Game::server->GetIsConnectedToMaster()) {
|
||||||
framesSinceMasterDisconnect++;
|
framesSinceMasterDisconnect++;
|
||||||
|
|
||||||
if (framesSinceMasterDisconnect >= 30) {
|
int framesToWaitForMaster = ready ? 10 : 200;
|
||||||
Game::logger->Log("WorldServer", "Game loop running but no connection to master for 30 frames, shutting down");
|
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;
|
worldShutdownSequenceStarted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user