diff options
-rw-r--r-- | src/network/core/tcp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp index 304e1d37e..96b6dfbb0 100644 --- a/src/network/core/tcp.cpp +++ b/src/network/core/tcp.cpp @@ -68,8 +68,6 @@ NetworkClientSocket::~NetworkClientSocket() */ NetworkRecvStatus NetworkClientSocket::CloseConnection() { - NetworkCloseClient(this); - /* Clients drop back to the main menu */ if (!_network_server && _networking) { _switch_mode = SM_MENU; @@ -80,6 +78,7 @@ NetworkRecvStatus NetworkClientSocket::CloseConnection() return NETWORK_RECV_STATUS_CONN_LOST; } + NetworkCloseClient(this); return NETWORK_RECV_STATUS_OKAY; } |