diff --git a/interfaces/inner_kits/native_cpp/src/notify/device_manager_notify.cpp b/interfaces/inner_kits/native_cpp/src/notify/device_manager_notify.cpp index 1a44d2f1..590fb919 100644 --- a/interfaces/inner_kits/native_cpp/src/notify/device_manager_notify.cpp +++ b/interfaces/inner_kits/native_cpp/src/notify/device_manager_notify.cpp @@ -309,7 +309,6 @@ void DeviceManagerNotify::OnCredentialResult(const std::string &pkgName, int32_t return; } credentialCallback_[pkgName]->OnCredentialResult(action, credentialResult); - credentialCallback_.erase(pkgName); } } // namespace DistributedHardware } // namespace OHOS