diff options
-rw-r--r-- | src/components/policy/policy_external/src/policy_manager_impl.cc | 5 | ||||
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/components/policy/policy_external/src/policy_manager_impl.cc b/src/components/policy/policy_external/src/policy_manager_impl.cc index 871d34df7c..7fd4624179 100644 --- a/src/components/policy/policy_external/src/policy_manager_impl.cc +++ b/src/components/policy/policy_external/src/policy_manager_impl.cc @@ -1871,8 +1871,9 @@ std::string PolicyManagerImpl::ForcePTExchange() { void policy::PolicyManagerImpl::StopRetrySequence() { LOG4CXX_AUTO_TRACE(logger_); - - ResetRetrySequence(ResetRetryCountType::kResetWithStatusUpdate); + if (update_status_manager_.IsUpdateRequired()) { + ResetRetrySequence(ResetRetryCountType::kResetWithStatusUpdate); + } } std::string PolicyManagerImpl::ForcePTExchangeAtUserRequest() { 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 52c5ac5706..2eaa517381 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -1227,7 +1227,9 @@ void PolicyManagerImpl::StopRetrySequence() { timer_retry_sequence_.Stop(); } - ResetRetrySequence(ResetRetryCountType::kResetWithStatusUpdate); + if (update_status_manager_.IsUpdateRequired()) { + ResetRetrySequence(ResetRetryCountType::kResetWithStatusUpdate); + } } std::string PolicyManagerImpl::ForcePTExchangeAtUserRequest() { |