mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
added missing disconnect for stress testing
This commit is contained in:
parent
09cd38d320
commit
818cf464e3
|
@ -1709,6 +1709,15 @@ void CClient::Update()
|
|||
ActionTaken = Now;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if(Now > ActionTaken+time_freq()*(10+g_Config.m_DbgStress))
|
||||
{
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "stress", "disconnecting!");
|
||||
Disconnect();
|
||||
ActionTaken = Now;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// pump the network
|
||||
|
|
Loading…
Reference in a new issue