No need for sleep, Accept() already sleeps.

This commit is contained in:
Bartosz Taudul 2017-09-11 23:16:17 +02:00
parent 8747da8e2c
commit 8fb8e4f792

View File

@ -82,7 +82,6 @@ void Profiler::Worker()
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
sock = listen.Accept();
if( sock ) break;
std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
}
sock->Send( &m_timeBegin, sizeof( m_timeBegin ) );