summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-07 18:28:09 +0000
committerrubidium <rubidium@openttd.org>2010-02-07 18:28:09 +0000
commitf47f3a415779a8ce7b707b3a6c998881097e3ada (patch)
treeec8fc38191b4527a7865934fbeb6492a83610878 /src/network/core
parentfb9b833dc49674ffa98402cb6a66347e0fd8eef5 (diff)
downloadopenttd-f47f3a415779a8ce7b707b3a6c998881097e3ada.tar.xz
(svn r19054) -Fix [FS#3598]: when banning yourself via rcon do not send the 'command response' to the client as the connection has already been terminated
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/tcp_game.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/core/tcp_game.cpp b/src/network/core/tcp_game.cpp
index ec41d1327..24a4726ef 100644
--- a/src/network/core/tcp_game.cpp
+++ b/src/network/core/tcp_game.cpp
@@ -42,6 +42,7 @@ NetworkClientSocket::~NetworkClientSocket()
this->command_queue = p;
}
+ if (_redirect_console_to_client == this->client_id) _redirect_console_to_client = INVALID_CLIENT_ID;
this->client_id = INVALID_CLIENT_ID;
this->status = STATUS_INACTIVE;
}