(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:
@@ -463,7 +463,6 @@ void NetworkClose(bool close_admins)
|
|||||||
ServerNetworkAdminSocketHandler::CloseListeners();
|
ServerNetworkAdminSocketHandler::CloseListeners();
|
||||||
} else if (MyClient::my_client != NULL) {
|
} else if (MyClient::my_client != NULL) {
|
||||||
MyClient::SendQuit();
|
MyClient::SendQuit();
|
||||||
MyClient::my_client->Send_Packets();
|
|
||||||
MyClient::my_client->CloseConnection(NETWORK_RECV_STATUS_CONN_LOST);
|
MyClient::my_client->CloseConnection(NETWORK_RECV_STATUS_CONN_LOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user