瀏覽代碼

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 年之前
父節點
當前提交
9c7c47c754
共有 1 個文件被更改,包括 2 次插入1 次删除
  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("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
 }