aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/profiling/SendCounterPacket.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/profiling/SendCounterPacket.cpp b/src/profiling/SendCounterPacket.cpp
index 382f958fca..dcba156e93 100644
--- a/src/profiling/SendCounterPacket.cpp
+++ b/src/profiling/SendCounterPacket.cpp
@@ -916,6 +916,11 @@ void SendCounterPacket::Start(IProfilingConnection& profilingConnection)
return;
}
+ if (m_SendThread.joinable())
+ {
+ m_SendThread.join();
+ }
+
// Mark the send thread as running
m_IsRunning.store(true);