1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

CServerHandler: one more small fix when server is crashed

This commit is contained in:
Arseniy Shestakov 2017-08-13 23:17:56 +03:00
parent 9c7c47c754
commit c3e6195cc9

View File

@ -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
}