diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 9024c2d7..5aba68ca 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1687,10 +1687,12 @@ void Profiler::Worker() keepAlive = 0; } + int quota = 500; bool connActive = true; - while( m_sock->HasData() && connActive ) + while( quota-- && m_sock->HasData() ) { connActive = HandleServerQuery(); + if( !connActive ) break; } if( !connActive ) break; }