mirror of
https://gitee.com/openharmony/base_location
synced 2024-11-27 00:51:30 +00:00
bugfix
Signed-off-by: 李文龙 <liwenlong22@huawei.com>
This commit is contained in:
parent
1338171af8
commit
a6c60bd165
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user