Signed-off-by: caochunlei <caochunlei1@huawei.com>
This commit is contained in:
caochunlei 2022-08-04 18:29:38 +08:00
parent 73aa4762c8
commit 6e65dc6f1b

View File

@ -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());
}