summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2019-09-17 13:45:51 -0400
committerJackLivio <jack@livio.io>2019-09-17 13:45:51 -0400
commitc6f59e7edb14e2938c20dddb0fa145875548bd89 (patch)
tree66685fbbf0b32fb53e9515d0feb4a8dfb33ca284
parent3ea6b1a35c2ff77220e2915ff9efdf6226115314 (diff)
downloadsdl_core-fix/condition_check_reset_retry_sequence.tar.gz
Add condition check for policy ResetRetrySequencefix/condition_check_reset_retry_sequence
-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 95d3011b33..94ac801d1a 100644
--- a/src/components/policy/policy_external/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_external/src/policy_manager_impl.cc
@@ -1879,8 +1879,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 9e5cf01493..adc406795e 100644
--- a/src/components/policy/policy_regular/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc
@@ -1236,7 +1236,9 @@ void PolicyManagerImpl::StopRetrySequence() {
timer_retry_sequence_.Stop();
}
- ResetRetrySequence(ResetRetryCountType::kResetWithStatusUpdate);
+ if (update_status_manager_.IsUpdateRequired()) {
+ ResetRetrySequence(ResetRetryCountType::kResetWithStatusUpdate);
+ }
}
std::string PolicyManagerImpl::ForcePTExchangeAtUserRequest() {