summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlha Vorobiova (GitHub) <86727408+OlhaVorobiova@users.noreply.github.com>2022-01-13 16:51:44 +0200
committerGitHub <noreply@github.com>2022-01-13 09:51:44 -0500
commit525abcc8e797e002bbf48444fe3bff931a89dc10 (patch)
tree96ae1c2cf7bdd322db90991a5888b520603c5168
parent94d6a89f471f8f6a707585465945c4ca77ae6e7e (diff)
downloadsdl_core-525abcc8e797e002bbf48444fe3bff931a89dc10.tar.gz
SDL doesn't send up_to_date (#3834)
* Correct UpdateStatusManager behavior after kOnValidUpdateReceived * Added an initialization of flags in external proprietary mode
-rw-r--r--src/components/policy/policy_external/src/policy_manager_impl.cc2
-rw-r--r--src/components/policy/policy_regular/src/status.cc1
2 files changed, 3 insertions, 0 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 75920be58c..b975b83712 100644
--- a/src/components/policy/policy_external/src/policy_manager_impl.cc
+++ b/src/components/policy/policy_external/src/policy_manager_impl.cc
@@ -215,6 +215,8 @@ PolicyManagerImpl::PolicyManagerImpl()
, applications_pending_ptu_count_(0)
, ignition_check(true)
, retry_sequence_url_(0, 0, "")
+ , send_on_update_sent_out_(false)
+ , trigger_ptu_(false)
, ptu_requested_(false)
, is_ptu_in_progress_(false) {}
diff --git a/src/components/policy/policy_regular/src/status.cc b/src/components/policy/policy_regular/src/status.cc
index c870658622..f213c1f2a8 100644
--- a/src/components/policy/policy_regular/src/status.cc
+++ b/src/components/policy/policy_regular/src/status.cc
@@ -64,6 +64,7 @@ void policy::UpdateNeededStatus::ProcessEvent(
manager->SetNextStatus(std::make_shared<UpToDateStatus>());
manager->SetPostponedStatus(std::make_shared<UpdateNeededStatus>());
break;
+ case kOnValidUpdateReceived:
case kOnResetPolicyTableNoUpdate:
manager->SetNextStatus(std::make_shared<UpToDateStatus>());
break;