Signed-off-by: 李文龙 <liwenlong22@huawei.com>
This commit is contained in:
李文龙 2024-11-04 14:03:12 +08:00
parent 1338171af8
commit a6c60bd165

View File

@ -129,7 +129,7 @@ __attribute__((no_sanitize("cfi"))) LocationErrCode LocatorRequiredDataManager::
LocationErrCode LocatorRequiredDataManager::UnregisterCallback(const sptr<IRemoteObject>& callback)
{
#ifdef WIFI_ENABLE
std::unique_lock<std::mutex> lock(mutex_, std::defer_lock);
std::unique_lock<std::mutex> lock(mutex_);
auto iter = callbacksMap_.find(callback);
if (iter != callbacksMap_.end()) {
callbacksMap_.erase(iter);