From 68948712b47c01fabbb7d1d788345ac608ab5f43 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 22 May 2021 01:12:42 +0200 Subject: [PATCH] Don't sleep if queues are empty, but there's queries to handle. --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 5aba68ca..bad57ef5 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1676,7 +1676,7 @@ void Profiler::Worker() keepAlive = 0; } - else + else if( !m_sock->HasData() ) { keepAlive++; std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );