added missing disconnect for stress testing

This commit is contained in:
oy 2011-02-13 17:59:51 +01:00
parent 09cd38d320
commit 818cf464e3

View file

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