summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-04-11 17:25:44 +0000
committersmatz <smatz@openttd.org>2010-04-11 17:25:44 +0000
commit43015ad79b0a2de4ca378710d34740ad508aa5c1 (patch)
tree15c5dae82651d109f59f69c93515e8cb1d173d74 /src
parent13e5058efe0d2712b997f810949d6e2a51adfbdd (diff)
downloadopenttd-43015ad79b0a2de4ca378710d34740ad508aa5c1.tar.xz
(svn r19609) -Fix: do not print 'Connection lost' message for clients who failed to enter correct password
Diffstat (limited to 'src')
-rw-r--r--src/network/network.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index e52530a24..24fc8a856 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -548,7 +548,7 @@ NetworkRecvStatus NetworkCloseClient(NetworkClientSocket *cs, NetworkRecvStatus
*/
if (cs->sock == INVALID_SOCKET) return status;
- if (status != NETWORK_RECV_STATUS_CONN_LOST && !cs->HasClientQuit() && _network_server && cs->status > STATUS_INACTIVE) {
+ if (status != NETWORK_RECV_STATUS_CONN_LOST && !cs->HasClientQuit() && _network_server && cs->status >= STATUS_AUTH) {
/* We did not receive a leave message from this client... */
char client_name[NETWORK_CLIENT_NAME_LENGTH];
NetworkClientSocket *new_cs;