Discard send buffer data after disconnect.

This commit is contained in:
Bartosz Taudul 2019-06-10 02:11:29 +02:00
parent 2cf50427be
commit 57b8b425ba

View File

@ -1237,6 +1237,7 @@ void Profiler::Worker()
#ifdef TRACY_ON_DEMAND #ifdef TRACY_ON_DEMAND
m_isConnected.store( false, std::memory_order_release ); m_isConnected.store( false, std::memory_order_release );
m_bufferOffset = 0;
#endif #endif
m_sock->~Socket(); m_sock->~Socket();