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:
parent
d10ef8c501
commit
c8ff8540f9
@ -2846,6 +2846,7 @@ void Worker::Exec()
|
|||||||
{
|
{
|
||||||
if( m_shutdown.load( std::memory_order_relaxed ) ) { m_netWriteCv.notify_one(); return; };
|
if( m_shutdown.load( std::memory_order_relaxed ) ) { m_netWriteCv.notify_one(); return; };
|
||||||
if( m_sock.Connect( m_addr.c_str(), m_port ) ) break;
|
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;
|
std::chrono::time_point<std::chrono::high_resolution_clock> t0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user