mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Also use cl_reconnect_timeout on 'Too weak connection'
This commit is contained in:
parent
e518a701a3
commit
8753620e42
|
@ -630,7 +630,7 @@ void CClient::SetState(int s)
|
|||
{
|
||||
if(g_Config.m_ClReconnectFull > 0 && (str_find_nocase(ErrorString(), "full") || str_find_nocase(ErrorString(), "reserved")))
|
||||
m_ReconnectTime = time_get() + time_freq() * g_Config.m_ClReconnectFull;
|
||||
else if(g_Config.m_ClReconnectTimeout > 0 && str_find_nocase(ErrorString(), "Timeout"))
|
||||
else if(g_Config.m_ClReconnectTimeout > 0 && (str_find_nocase(ErrorString(), "Timeout") || str_find_nocase(ErrorString(), "Too weak connection")))
|
||||
m_ReconnectTime = time_get() + time_freq() * g_Config.m_ClReconnectTimeout;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue