From dc0f2db3f2af7b45432cc6bd9841c34d22cd534b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 23 May 2020 15:20:23 +0200 Subject: [PATCH] CheckString() doesn't check if string query is still pending. --- server/TracyWorker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 40465f9f..12d45208 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3606,8 +3606,7 @@ void Worker::AddSourceLocation( const QueueSourceLocation& srcloc ) if( CheckString( srcloc.file ) ) { StringRef ref( StringRef::Ptr, srcloc.file ); - assert( m_pendingFileStrings.find( ref ) == m_pendingFileStrings.end() ); - if( srcloc.file != 0 && m_checkedFileStrings.find( ref ) == m_checkedFileStrings.end() ) + if( srcloc.file != 0 && m_checkedFileStrings.find( ref ) == m_checkedFileStrings.end() && m_pendingFileStrings.find( ref ) == m_pendingFileStrings.end() ) { CacheSource( ref ); }