From dd348bdea6c1fd16a75e05eb42b2415bb5f6f1fe Mon Sep 17 00:00:00 2001 From: wuzhihuitmac Date: Wed, 9 Apr 2025 17:16:16 +0800 Subject: [PATCH] Modify the problem about resumesensor Signed-off-by: wuzhihuitmac Change-Id: I12d91f5b63a263fdce29f99060d0d591a77edd94 --- services/src/sensor_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/src/sensor_service.cpp b/services/src/sensor_service.cpp index 3ede64e3..e9b6d22f 100644 --- a/services/src/sensor_service.cpp +++ b/services/src/sensor_service.cpp @@ -523,6 +523,7 @@ void SensorService::ProcessDeathObserver(const wptr &object) SEN_HILOGE("pid is invalid"); return; } + POWER_POLICY.DeleteDeathPidSensorInfo(pid); SEN_HILOGI("pid is %{public}d", pid); std::vector activeSensors = clientInfo_.GetSensorIdByPid(pid); for (size_t i = 0; i < activeSensors.size(); ++i) { @@ -536,7 +537,6 @@ void SensorService::ProcessDeathObserver(const wptr &object) clientInfo_.DestroySensorChannel(pid); clientInfo_.DestroyClientPid(client); clientInfo_.DestroyCmd(clientInfo_.GetUidByPid(pid)); - POWER_POLICY.DeleteDeathPidSensorInfo(pid); } void SensorService::RegisterClientDeathRecipient(sptr sensorClient, int32_t pid) -- Gitee