mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Don't send data when connection is terminated.
There are only two cases for which HandleServerQuery() returns false. Either data can't be read from the socket (which is checked by HasData() call before calling HandleServerQuery()), or if the server sent termination query. In both these cases there's no need to send data anymore.
This commit is contained in:
parent
23e7850162
commit
496f866add
@ -1322,7 +1322,6 @@ void Profiler::Worker()
|
||||
{
|
||||
if( !HandleServerQuery() )
|
||||
{
|
||||
if( m_bufferOffset != m_bufferStart ) CommitData();
|
||||
m_shutdownFinished.store( true, std::memory_order_relaxed );
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user