mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
42b074cb9c
commit
44a03d0478
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue