From 2cbafe95b1f253368f72ef71b441a7fcb489d1f1 Mon Sep 17 00:00:00 2001 From: Alexander Hirsch Date: Fri, 15 Jun 2018 09:37:48 +0200 Subject: [PATCH] Interrupt running LogDataWorkerThread in dtor. --- src/data/logdataworkerthread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/logdataworkerthread.cpp b/src/data/logdataworkerthread.cpp index 49069de25..bde607ff1 100644 --- a/src/data/logdataworkerthread.cpp +++ b/src/data/logdataworkerthread.cpp @@ -92,6 +92,7 @@ LogDataWorkerThread::LogDataWorkerThread( IndexingData& indexing_data ) LogDataWorkerThread::~LogDataWorkerThread() { + interruptRequested_.store( true, std::memory_order_relaxed ); { QMutexLocker locker( &mutex_ ); terminate_ = true;