summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-03 18:36:51 +0000
committersmatz <smatz@openttd.org>2011-01-03 18:36:51 +0000
commit810873ff3397ef266ea433a580e1dea5d2bb2f96 (patch)
tree3d4e01d58611b4fb6182ca5d5a12296ae73caafe /src
parent8e3e93b96ff0e575c798ed443825c39ff192aa58 (diff)
downloadopenttd-810873ff3397ef266ea433a580e1dea5d2bb2f96.tar.xz
(svn r21704) -Fix [FS#4374]: no need to perform any more checks after the connection is closed (Rubidium)
Diffstat (limited to 'src')
-rw-r--r--src/network/network_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 8ec5da468..f9b71ca44 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1703,12 +1703,14 @@ void NetworkServer_Tick(bool send_frame)
if (lag > _settings_client.network.max_join_time) {
IConsolePrintF(CC_ERROR,"Client #%d is dropped because it took longer than %d ticks for him to join", cs->client_id, _settings_client.network.max_join_time);
cs->CloseConnection(NETWORK_RECV_STATUS_SERVER_ERROR);
+ continue;
}
} else if (cs->status == NetworkClientSocket::STATUS_INACTIVE) {
uint lag = NetworkCalculateLag(cs);
if (lag > 4 * DAY_TICKS) {
IConsolePrintF(CC_ERROR,"Client #%d is dropped because it took longer than %d ticks to start the joining process", cs->client_id, 4 * DAY_TICKS);
cs->CloseConnection(NETWORK_RECV_STATUS_SERVER_ERROR);
+ continue;
}
}