1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

(svn r20988) -Fix [FS#4167]: no need to send packets and possibly get the connection closed when the next call also tries to send the packets and then closes the connection. Especially if the former frees a structure that the latter assumes to be still there

This commit is contained in:
rubidium
2010-10-18 10:44:51 +00:00
parent 42b074cb9c
commit 44a03d0478

View File

@@ -463,7 +463,6 @@ void NetworkClose(bool close_admins)
ServerNetworkAdminSocketHandler::CloseListeners();
} else if (MyClient::my_client != NULL) {
MyClient::SendQuit();
MyClient::my_client->Send_Packets();
MyClient::my_client->CloseConnection(NETWORK_RECV_STATUS_CONN_LOST);
}