mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-27 10:01:19 +00:00
fix dbinder endless loop
Signed-off-by: wanderer-dl122 <dengliang21@huawei.com>
This commit is contained in:
parent
3664c58505
commit
9ba9b4c420
@ -778,6 +778,7 @@ bool DBinderService::ProcessOnSessionClosed(std::shared_ptr<Session> session)
|
||||
std::lock_guard<std::mutex> lock(threadLockMutex_);
|
||||
for (auto it = threadLockInfo_.begin(); it != threadLockInfo_.end();) {
|
||||
if (it->second->networkId != session->GetPeerDeviceId()) {
|
||||
it++;
|
||||
continue;
|
||||
}
|
||||
std::unique_lock<std::mutex> lock(it->second->mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user