Explorar o código

CServerHandler: one more small fix when server is crashed

Arseniy Shestakov %!s(int64=8) %!d(string=hai) anos
pai
achega
c3e6195cc9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      client/Client.cpp

+ 1 - 0
client/Client.cpp

@@ -1121,6 +1121,7 @@ void CServerHandler::callServer()
 	{
 		logNetwork->error("Error: server failed to close correctly or crashed!");
 		logNetwork->error("Check %s for more info", logName);
+		serverAlive.setn(false);
 		// 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
 	}