mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-12-21 16:31:04 +00:00
Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
parent
73aa4762c8
commit
6e65dc6f1b
@ -211,7 +211,7 @@ void ConnectionStateManager::AddDlpManager(const std::shared_ptr<AbilityRecord>
|
||||
}
|
||||
|
||||
auto userId = dlpManger->GetOwnerMissionUserId();
|
||||
std::lock_guard<std::recursive_mutex> guard(stateLock_);
|
||||
std::lock_guard<std::recursive_mutex> guard(dlpLock_);
|
||||
auto it = dlpItems_.find(userId);
|
||||
if (it == dlpItems_.end()) {
|
||||
dlpItems_[userId] = std::make_shared<DlpStateItem>(dlpManger->GetUid(), dlpManger->GetPid());
|
||||
@ -224,7 +224,7 @@ void ConnectionStateManager::RemoveDlpManager(const std::shared_ptr<AbilityRecor
|
||||
return;
|
||||
}
|
||||
|
||||
std::lock_guard<std::recursive_mutex> guard(stateLock_);
|
||||
std::lock_guard<std::recursive_mutex> guard(dlpLock_);
|
||||
dlpItems_.erase(dlpManger->GetOwnerMissionUserId());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user