update rosen/modules/hyper_graphic_manager/core/config/hgm_config_callback_manager.cpp.

Signed-off-by: Vacord <duanmingxu@huawei.com>
This commit is contained in:
Vacord 2024-04-09 02:56:57 +00:00 committed by Gitee
parent 8dc50b7cbd
commit ea397ab923
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -99,8 +99,8 @@ void HgmConfigCallbackManager::RegisterHgmRefreshRateUpdateCallback(
std::lock_guard<std::mutex> lock(mtx_);
if (callback == nullptr) {
if (refreshRateUpdateCallbacks_.find(pid) != refreshRateUpdateCallbacks_.end()) {
refreshRateUpdateCallbacks_.erase(pid);
HGM_LOGD("refreshRateUpdateCallbacks unregister succ, remove pid %{public}u", pid);
refreshRateUpdateCallbacks_.erase(pid);
HGM_LOGD("refreshRateUpdateCallbacks unregister succ, remove pid %{public}u", pid);
}
return;
}