summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-02-13 17:59:51 +0100
committeroy <Tom_Adams@web.de>2011-02-13 17:59:51 +0100
commit818cf464e33d0b38d72c09b7e212e51db3896ad5 (patch)
tree1a3da39678321ba240ca3d7917f9e1dc1dbe91e1
parent09cd38d3207fb619022d1cda157ecb1504600513 (diff)
added missing disconnect for stress testing0.5-endofline
-rw-r--r--src/engine/client/client.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp
index c0be7bc05..a8e446acf 100644
--- a/src/engine/client/client.cpp
+++ b/src/engine/client/client.cpp
@@ -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