From a6c60bd16536ed669fdd06616b9ec27f2b17e0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=96=87=E9=BE=99?= Date: Mon, 4 Nov 2024 14:03:12 +0800 Subject: [PATCH] bugfix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李文龙 --- .../locator/source/locator_required_data_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/location_locator/locator/source/locator_required_data_manager.cpp b/services/location_locator/locator/source/locator_required_data_manager.cpp index e4f6a7b8..da0611a6 100644 --- a/services/location_locator/locator/source/locator_required_data_manager.cpp +++ b/services/location_locator/locator/source/locator_required_data_manager.cpp @@ -129,7 +129,7 @@ __attribute__((no_sanitize("cfi"))) LocationErrCode LocatorRequiredDataManager:: LocationErrCode LocatorRequiredDataManager::UnregisterCallback(const sptr& callback) { #ifdef WIFI_ENABLE - std::unique_lock lock(mutex_, std::defer_lock); + std::unique_lock lock(mutex_); auto iter = callbacksMap_.find(callback); if (iter != callbacksMap_.end()) { callbacksMap_.erase(iter);