mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-04 06:32:00 +00:00 
			
		
		
		
	Fix spam-log on master disconnect (#447)
This commit is contained in:
		@@ -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;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user