summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin <iCollin@users.noreply.github.com>2020-04-30 13:47:37 -0700
committerGitHub <noreply@github.com>2020-04-30 16:47:37 -0400
commit616abf28021b22acc2adb82fa8e2672b6a64fdac (patch)
treec817ef5a85c5b47b6df9b77687e4b015201b1ae2
parenta3edf21975abe5525444c345617ab09509d07102 (diff)
downloadsdl_core-616abf28021b22acc2adb82fa8e2672b6a64fdac.tar.gz
do not retry ptu if no apps are connected (#3350)
* do not retry ptu if no apps are connected * no URL should be returned if there is no app to do PTU
-rw-r--r--src/components/application_manager/src/policies/policy_handler.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/application_manager/src/policies/policy_handler.cc b/src/components/application_manager/src/policies/policy_handler.cc
index cee33b229b..11decf45c3 100644
--- a/src/components/application_manager/src/policies/policy_handler.cc
+++ b/src/components/application_manager/src/policies/policy_handler.cc
@@ -1656,6 +1656,10 @@ std::string PolicyHandler::GetNextUpdateUrl(
POLICY_LIB_CHECK_OR_RETURN(std::string());
app_id = ChoosePTUApplication(iteration_type);
+ if (0 == app_id) {
+ return std::string();
+ }
+
// Use cached URL for retries if it was provided by the HMI
if (PTUIterationType::RetryIteration == iteration_type &&
!retry_update_url_.empty()) {