From d989fb516bf271bc59c97d7580b1b66d849a1c1b Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Wed, 16 Dec 2020 23:23:12 +0300 Subject: Change: send network error to the server before making an emergency save (#8387) --- src/network/network_client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 74b802f91..dc593eacd 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -217,10 +217,11 @@ void ClientNetworkGameSocketHandler::ClientError(NetworkRecvStatus res) SendError(errorno); } + this->CloseConnection(res); + ClientNetworkEmergencySave(); _switch_mode = SM_MENU; - this->CloseConnection(res); _networking = false; } -- cgit v1.2.3-70-g09d2