summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network_client.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}