Don't sleep if queues are empty, but there's queries to handle.

This commit is contained in:
Bartosz Taudul 2021-05-22 01:12:42 +02:00
parent 6bb05c5b97
commit 68948712b4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1676,7 +1676,7 @@ void Profiler::Worker()
keepAlive = 0; keepAlive = 0;
} }
else else if( !m_sock->HasData() )
{ {
keepAlive++; keepAlive++;
std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) ); std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );