Merge pull request #443 from DarkflameUniverse/log-missing-master-conn-shutdown

Log WorldServer shutdown when MasterServer connection is missing
This commit is contained in:
Xiphoseer 2022-02-07 10:58:52 +01:00 committed by GitHub
commit 56765d355b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,6 +314,7 @@ int main(int argc, char** argv) {
framesSinceMasterDisconnect++; framesSinceMasterDisconnect++;
if (framesSinceMasterDisconnect >= 30) { if (framesSinceMasterDisconnect >= 30) {
Game::logger->Log("WorldServer", "Game loop running but no connection to master for 30 frames, shutting down");
worldShutdownSequenceStarted = true; worldShutdownSequenceStarted = true;
} }
} }