From bcfc4a4fa7cf9560efc7b8cc0286fa7948b29daa Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 23 Sep 2021 18:08:03 +0200 Subject: [PATCH] Fix message thread assignment in import-chrome. --- server/TracyWorker.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 02024b76..754c403a 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -416,6 +416,12 @@ Worker::Worker( const char* name, const char* program, const std::vectorthread = CompressThread( v.tid ); msg->color = 0xFFFFFFFF; msg->callstack.SetVal( 0 ); + + if( m_threadCtx != v.tid ) + { + m_threadCtx = v.tid; + m_threadCtxData = nullptr; + } InsertMessageData( msg ); }