From 6e37c15d6a3d514d1fe3c4e978bfdec148b95029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Fri, 2 Oct 2020 18:58:29 +0200 Subject: [PATCH] Unlock mutex before destroying it. QWaitCondition.wait restores mutex to the original state. Fixes: WARNING - QMutex: destroying locked mutex on each camera control change. --- src/drivers/imager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/imager.cpp b/src/drivers/imager.cpp index a1cf5d5..0ad1bf7 100644 --- a/src/drivers/imager.cpp +++ b/src/drivers/imager.cpp @@ -136,6 +136,7 @@ void Imager::wait_for(const std::shared_ptr& wait_condition) con QMutex wait_mutex; wait_mutex.lock(); wait_condition->wait(&wait_mutex); + wait_mutex.unlock(); }