From 57b8b425bacf9ddf3223e764cd297f371cbc0b3e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 10 Jun 2019 02:11:29 +0200 Subject: [PATCH] Discard send buffer data after disconnect. --- client/TracyProfiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index cb1e527a..f9f2b266 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1237,6 +1237,7 @@ void Profiler::Worker() #ifdef TRACY_ON_DEMAND m_isConnected.store( false, std::memory_order_release ); + m_bufferOffset = 0; #endif m_sock->~Socket();