1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Only one outgoing server connection is supported.

This commit is contained in:
Bartosz Taudul 2018-09-09 17:47:20 +02:00
parent 2ae2399f31
commit 806c8de463

View File

@ -1273,12 +1273,13 @@ void Worker::Exec()
return m_shutdown.load( std::memory_order_relaxed );
};
auto lz4buf = std::make_unique<char[]>( LZ4Size );
for(;;)
{
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
if( !m_sock.Connect( m_addr.c_str(), "8086" ) ) continue;
if( m_sock.Connect( m_addr.c_str(), "8086" ) ) break;
}
auto lz4buf = std::make_unique<char[]>( LZ4Size );
std::chrono::time_point<std::chrono::high_resolution_clock> t0;
uint64_t bytes = 0;
@ -1408,7 +1409,6 @@ close:
m_sock.Close();
m_connected.store( false, std::memory_order_relaxed );
}
}
void Worker::ServerQuery( uint8_t type, uint64_t data )
{