From dc04245a6d095508b950e4c132189b1f67132d82 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 21 Sep 2022 21:06:53 +0200 Subject: [PATCH] AFC feature corrections --- plugins/feature/afc/afc.cpp | 2 +- plugins/feature/afc/afc.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/feature/afc/afc.cpp b/plugins/feature/afc/afc.cpp index c4416cb15..ba4c6097f 100644 --- a/plugins/feature/afc/afc.cpp +++ b/plugins/feature/afc/afc.cpp @@ -50,8 +50,8 @@ const char* const AFC::m_featureId = "AFC"; AFC::AFC(WebAPIAdapterInterface *webAPIAdapterInterface) : Feature(m_featureIdURI, webAPIAdapterInterface), m_thread(nullptr), - m_mutex(QMutex::Recursive), m_running(false), + m_worker(nullptr), m_trackerDeviceSet(nullptr), m_trackedDeviceSet(nullptr), m_trackerIndexInDeviceSet(-1), diff --git a/plugins/feature/afc/afc.h b/plugins/feature/afc/afc.h index 4b141df84..ff6a14452 100644 --- a/plugins/feature/afc/afc.h +++ b/plugins/feature/afc/afc.h @@ -19,7 +19,7 @@ #define INCLUDE_FEATURE_AFC_H_ #include -#include +#include #include "feature/feature.h" #include "util/message.h" @@ -203,7 +203,7 @@ public: private: QThread *m_thread; - QMutex m_mutex; + QRecursiveMutex m_mutex; bool m_running; AFCWorker *m_worker; AFCSettings m_settings;