diff --git a/smocore/deviceManager/deviceManager.cpp b/smocore/deviceManager/deviceManager.cpp index 4bf8e4b..2f5b279 100644 --- a/smocore/deviceManager/deviceManager.cpp +++ b/smocore/deviceManager/deviceManager.cpp @@ -373,7 +373,7 @@ public: return; } - sense_api::SenseApiManager::getInstance().qutex.release(); + releaseQutexEarly(sense_api::SenseApiManager::getInstance().qutex); /** EXPLANATION: * We pass in either the body or world thread here, depending on whether @@ -442,7 +442,7 @@ public: return; } - sense_api::SenseApiManager::getInstance().qutex.release(); + releaseQutexEarly(sense_api::SenseApiManager::getInstance().qutex); senseApiLib->senseApiDesc.sal_mgmt_libOps.detachDeviceReq( spec, @@ -682,7 +682,7 @@ public: } // Release the DeviceManager qutex early before calling the inner method - DeviceManager::getInstance().qutex.release(); + releaseQutexEarly(DeviceManager::getInstance().qutex); // Pass the vector to the existing function DeviceManager::getInstance().attachAllUnattachedDevicesFromReq(