mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Flush queues when opening listen socket fails.
This commit is contained in:
parent
a4be9b51b0
commit
e9ce8fdfda
@ -933,7 +933,19 @@ void Profiler::Worker()
|
||||
moodycamel::ConsumerToken token( s_queue );
|
||||
|
||||
ListenSocket listen;
|
||||
listen.Listen( "8086", 8 );
|
||||
if( !listen.Listen( "8086", 8 ) )
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
if( ShouldExit() )
|
||||
{
|
||||
m_shutdownFinished.store( true, std::memory_order_relaxed );
|
||||
return;
|
||||
}
|
||||
|
||||
ClearQueues( token );
|
||||
}
|
||||
}
|
||||
|
||||
for(;;)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user