1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Sleep when connection attempt fails.

This commit is contained in:
Bartosz Taudul 2020-05-14 02:27:57 +02:00
parent d10ef8c501
commit c8ff8540f9

View File

@ -2846,6 +2846,7 @@ void Worker::Exec()
{
if( m_shutdown.load( std::memory_order_relaxed ) ) { m_netWriteCv.notify_one(); return; };
if( m_sock.Connect( m_addr.c_str(), m_port ) ) break;
std::this_thread::sleep_for( std::chrono::milliseconds( 10 ) );
}
std::chrono::time_point<std::chrono::high_resolution_clock> t0;