From 107630f4094432a3085d4c77979d1b6fbad8becf Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Fri, 30 May 2025 14:06:20 -0700 Subject: [PATCH] need to get the chrome tracing lock when flushing the trace file --- intercept/src/chrometracer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intercept/src/chrometracer.h b/intercept/src/chrometracer.h index 9e2db023..4c060381 100644 --- a/intercept/src/chrometracer.h +++ b/intercept/src/chrometracer.h @@ -366,9 +366,9 @@ class CChromeTracer std::ostream& flush() { + std::lock_guard lock(m_Mutex); if( m_RecordBuffer.size() > 0 ) { - std::lock_guard lock(m_Mutex); flushRecords(); } return m_TraceFile.flush();