diff options
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_manager_impl.cc')
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/policy/policy_regular/src/policy_manager_impl.cc b/src/components/policy/policy_regular/src/policy_manager_impl.cc index b8380b761d..c6389b503b 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -713,6 +713,11 @@ void PolicyManagerImpl::UpdatePTUReadyAppsCount(const uint32_t new_app_count) { void PolicyManagerImpl::OnAppRegisteredOnMobile( const std::string& device_id, const std::string& application_id) { if (application_id != last_registered_policy_app_id_) { + if (last_registered_policy_app_id_.empty()) { + LOG4CXX_DEBUG(logger_, "Stopping update after first app is registered"); + // ResetRetrySequence(ResetRetryCountType::kResetInternally); + StopRetrySequence(); + } StartPTExchange(); last_registered_policy_app_id_ = application_id; } @@ -1867,6 +1872,13 @@ bool PolicyManagerImpl::FunctionGroupNeedEncryption( : false; } +void PolicyManagerImpl::TriggerPTUOnStartupIfRequired() { + LOG4CXX_AUTO_TRACE(logger_); + if (ignition_check) { + StartPTExchange(); + } +} + const std::string PolicyManagerImpl::GetPolicyFunctionName( const uint32_t function_id) const { return policy_table::EnumToJsonString( |