summaryrefslogtreecommitdiff
path: root/src/network/core/tcp_game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/core/tcp_game.cpp')
-rw-r--r--src/network/core/tcp_game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index b4bb52190..58447ad68 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -50,7 +50,7 @@ NetworkClientSocket::~NetworkClientSocket()
* @return the new status
* TODO: needs to be splitted when using client and server socket packets
*/
-NetworkRecvStatus NetworkClientSocket::CloseConnection()
+NetworkRecvStatus NetworkClientSocket::CloseConnection(bool error)
{
/* Clients drop back to the main menu */
if (!_network_server && _networking) {
@@ -62,7 +62,7 @@ NetworkRecvStatus NetworkClientSocket::CloseConnection()
return NETWORK_RECV_STATUS_CONN_LOST;
}
- NetworkCloseClient(this);
+ NetworkCloseClient(this, error);
return NETWORK_RECV_STATUS_OKAY;
}