summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Keeler <jacob.keeler@livioradio.com>2019-09-23 15:07:51 -0400
committerCollin <iCollin@users.noreply.github.com>2019-09-23 15:07:51 -0400
commit40d1eb07e8e89f5626a69c2722253c6bf7cb2055 (patch)
treee77879548a94e7d10e712ecab8030643eac91688
parent76d4c2ac23b2743e1f1e7eddc0334cfde3e56284 (diff)
downloadsdl_core-40d1eb07e8e89f5626a69c2722253c6bf7cb2055.tar.gz
Add condition check for policy ResetRetrySequence (#3035)
-rw-r--r--src/components/policy/policy_external/src/policy_manager_impl.cc5
-rw-r--r--src/components/policy/policy_regular/src/policy_manager_impl.cc4
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() {