1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 04:29:09 +00:00

Change: send network error to the server before making an emergency save (#8387)

This commit is contained in:
Pavel Stupnikov
2020-12-16 23:23:12 +03:00
committed by GitHub
parent 88f30f7fe7
commit d989fb516b

View File

@@ -217,10 +217,11 @@ void ClientNetworkGameSocketHandler::ClientError(NetworkRecvStatus res)
SendError(errorno);
}
this->CloseConnection(res);
ClientNetworkEmergencySave();
_switch_mode = SM_MENU;
this->CloseConnection(res);
_networking = false;
}