Skip to content

Commit

Permalink
added missing disconnect for stress testing
Browse files Browse the repository at this point in the history
  • Loading branch information
oy committed Feb 13, 2011
1 parent 09cd38d commit 818cf46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/engine/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 818cf46

Please sign in to comment.