changeset 16968:57af4c33f0bb draft

(svn r21704) -Fix [FS#4374]: no need to perform any more checks after the connection is closed (Rubidium)
author smatz <smatz@openttd.org>
date Mon, 03 Jan 2011 18:36:51 +0000
parents 77f2b8f0869d
children 9dbc45ec9742
files src/network/network_server.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1703,12 +1703,14 @@
 			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;
 			}
 		}