summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-18 10:44:51 +0000
committerrubidium <rubidium@openttd.org>2010-10-18 10:44:51 +0000
commit44a03d04780d9cbf0e68ee0eb996067d6f386714 (patch)
treef29ef8dd1aeb8ab7d64d414648c477df4b9898c6
parent42b074cb9c145f67a3cb2f820ab2bcece1e04c8d (diff)
downloadopenttd-44a03d04780d9cbf0e68ee0eb996067d6f386714.tar.xz
(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
-rw-r--r--src/network/network.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index d94656165..68d3887f2 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -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);
}