1
0
Fork 0

(svn r21704) -Fix [FS#4374]: no need to perform any more checks after the connection is closed (Rubidium)

release/1.1
smatz 2011-01-03 18:36:51 +00:00
parent 8e3e93b96f
commit 810873ff33
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}