From 4cd2a2fdfacbd7859ee664332f51106a072f7997 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Tue, 20 Sep 2022 21:14:36 +0100 Subject: [PATCH] Call stopWork from destructor. --- plugins/feature/satellitetracker/satellitetrackerworker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/feature/satellitetracker/satellitetrackerworker.cpp b/plugins/feature/satellitetracker/satellitetrackerworker.cpp index abd4db7fc..466b8c291 100644 --- a/plugins/feature/satellitetracker/satellitetrackerworker.cpp +++ b/plugins/feature/satellitetracker/satellitetrackerworker.cpp @@ -66,6 +66,7 @@ SatelliteTrackerWorker::SatelliteTrackerWorker(SatelliteTracker* satelliteTracke SatelliteTrackerWorker::~SatelliteTrackerWorker() { qDebug() << "SatelliteTrackerWorker::~SatelliteTrackerWorker"; + stopWork(); m_inputMessageQueue.clear(); } @@ -74,7 +75,6 @@ void SatelliteTrackerWorker::startWork() qDebug() << "SatelliteTrackerWorker::startWork"; QMutexLocker mutexLocker(&m_mutex); connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages())); - connect(thread(), SIGNAL(finished()), this, SLOT(stopWork())); m_recalculatePasses = true; m_pollTimer.start((int)round(m_settings.m_updatePeriod*1000.0));