From 818cf464e33d0b38d72c09b7e212e51db3896ad5 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 13 Feb 2011 17:59:51 +0100 Subject: added missing disconnect for stress testing --- src/engine/client/client.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index c0be7bc0..a8e446ac 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 -- cgit 1.4.1