summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2020-06-16 11:07:59 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2020-06-16 11:07:59 -0400
commit4378f1500189b6713459bd6d2cafc25de0b49f17 (patch)
tree562e831d12f6e9449e4a93210840e45b3c1f0728
parentea1b0f9b771be7ef13a3c38fafdc0a23828743ce (diff)
downloadsdl_core-4378f1500189b6713459bd6d2cafc25de0b49f17.tar.gz
Fix issue with External PTU timeout
When attempting to start an encrypted service, the mobile proxy would not receive a response if the PTU timed out. This is because the retry count is based on the number of OnSystemRequests received from the HMI. Since that number would never exceed the number of retries, `IsAllowedRetryCountExceeded` would never return false. This will now return false after the final retry times out.
-rw-r--r--src/components/policy/policy_external/src/policy_manager_impl.cc2
1 files changed, 1 insertions, 1 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 082d4a37ba..12ab1224fd 100644
--- a/src/components/policy/policy_external/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_external/src/policy_manager_impl.cc
@@ -1368,7 +1368,7 @@ bool PolicyManagerImpl::IsAllowedRetryCountExceeded() const {
LOG4CXX_AUTO_TRACE(logger_);
sync_primitives::AutoLock auto_lock(retry_sequence_lock_);
- return retry_sequence_index_ > retry_sequence_seconds_.size();
+ return retry_sequence_index_ >= retry_sequence_seconds_.size();
}
void PolicyManagerImpl::IncrementRetryIndex() {