diff options
author | Pavel Stupnikov <dp@dpointer.org> | 2020-12-16 23:23:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 21:23:12 +0100 |
commit | d989fb516bf271bc59c97d7580b1b66d849a1c1b (patch) | |
tree | 36ef7c4d095f582cb6fb4c4d93ef3b71c631f308 /src | |
parent | 88f30f7fe774f1e8943b5f5bed0264ac3f5d3a7b (diff) | |
download | openttd-d989fb516bf271bc59c97d7580b1b66d849a1c1b.tar.xz |
Change: send network error to the server before making an emergency save (#8387)
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_client.cpp | 3 |
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; } |