diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/engine/client/client.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 |