diff --git a/frameworks/native/src/sensor_service_client.cpp b/frameworks/native/src/sensor_service_client.cpp index 0a956f50fea0c5b01fcadb8bf22332e7f366fdf3..b52e2897070676f4cf3b36aebef278d03181790e 100644 --- a/frameworks/native/src/sensor_service_client.cpp +++ b/frameworks/native/src/sensor_service_client.cpp @@ -280,6 +280,7 @@ void SensorServiceClient::ProcessDeathObserver(const wptr &object SEN_HILOGI("dataChannel_ is not nullptr"); dataChannel_->DestroySensorDataChannel(); dataChannel_->RestoreSensorDataChannel(); + SENSOR_AGENT_IMPL->SetIsChannelCreated(true); { std::lock_guard clientLock(clientMutex_); sensorServer_ = nullptr;