about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 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