Browse Source

CServerHandler: for now don't stop client if server crashed

Currently server stable enough and only crash on shutdown.
It's certainly more annoying to crash on end of game than get freeze.
Unfortunately it's crash on shutdown almost every time on macOS.
Arseniy Shestakov 8 năm trước cách đây
mục cha
commit
9c7c47c754
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      client/Client.cpp

+ 2 - 1
client/Client.cpp

@@ -1121,7 +1121,8 @@ void CServerHandler::callServer()
 	{
 	{
 		logNetwork->error("Error: server failed to close correctly or crashed!");
 		logNetwork->error("Error: server failed to close correctly or crashed!");
 		logNetwork->error("Check %s for more info", logName);
 		logNetwork->error("Check %s for more info", logName);
-		exit(1);// exit in case of error. Othervice without working server VCMI will hang
+		// TODO: make client return to main menu if server actually crashed during game.
+//		exit(1);// exit in case of error. Othervice without working server VCMI will hang
 	}
 	}
 #endif
 #endif
 }
 }