From 9ba9b4c420303c1468c607ac7b2d7a852b8d64c5 Mon Sep 17 00:00:00 2001 From: wanderer-dl122 Date: Wed, 6 Sep 2023 18:03:14 +0800 Subject: [PATCH] fix dbinder endless loop Signed-off-by: wanderer-dl122 --- services/dbinder/dbinder_service/src/dbinder_service.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/dbinder/dbinder_service/src/dbinder_service.cpp b/services/dbinder/dbinder_service/src/dbinder_service.cpp index 99987460..c7cf6591 100644 --- a/services/dbinder/dbinder_service/src/dbinder_service.cpp +++ b/services/dbinder/dbinder_service/src/dbinder_service.cpp @@ -778,6 +778,7 @@ bool DBinderService::ProcessOnSessionClosed(std::shared_ptr session) std::lock_guard lock(threadLockMutex_); for (auto it = threadLockInfo_.begin(); it != threadLockInfo_.end();) { if (it->second->networkId != session->GetPeerDeviceId()) { + it++; continue; } std::unique_lock lock(it->second->mutex);