diff --git a/services/src/concurrent_task_controller.cpp b/services/src/concurrent_task_controller.cpp index 8eb42450edc2a5d05d61ea9f1a2475e8fe991fa8..6379e3be36e882713dac21339030cbae44cd35fc 100644 --- a/services/src/concurrent_task_controller.cpp +++ b/services/src/concurrent_task_controller.cpp @@ -454,7 +454,7 @@ void TaskController::NewBackground(int uid, int pid) } for (auto iter = foregroundApp_.begin(); iter != foregroundApp_.end(); iter++) { if (iter->GetPid() == pid) { - iter->EndScene(); + foregroundApp_.erase(iter); return; } } @@ -825,8 +825,6 @@ bool ForegroundAppRecord::BeginScene() CONCUR_LOGI("Error begin scene in pid %{public}d", pid_); return false; } - OHOS::RME::BeginFrameFreq(0); - OHOS::RME::EndFrameFreq(0); return true; }