mirror of
https://github.com/wolfpld/tracy
synced 2026-02-14 13:22:13 +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:
@@ -1322,7 +1322,6 @@ void Profiler::Worker()
|
||||
{
|
||||
if( !HandleServerQuery() )
|
||||
{
|
||||
if( m_bufferOffset != m_bufferStart ) CommitData();
|
||||
m_shutdownFinished.store( true, std::memory_order_relaxed );
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user