Do not allow 0 update rate

pull/133/head
Koncord 8 years ago
parent 03a92b3a91
commit b6f9a21d7f

@ -152,7 +152,8 @@ void MasterClient::Update()
{
LOG_MESSAGE_SIMPLE(Log::LOG_WARN, "Update rate is too low, and the master server has deleted information about"
" the server. Trying low rate...");
SetUpdateRate(timeout - step_rate);
if((timeout - step_rate) >= step_rate)
SetUpdateRate(timeout - step_rate);
update = false;
}
else

Loading…
Cancel
Save