mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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;
|
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
|
// pump the network
|
||||||
|
|
Loading…
Reference in a new issue