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

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.
This commit is contained in:
Arseniy Shestakov 2017-08-13 23:03:50 +03:00
parent 1a1d7c27cb
commit 9c7c47c754

View File

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