Skip to content

Commit

Permalink
Merge pull request #3351 from smartdevicelink/release/6.1.1
Browse files Browse the repository at this point in the history
Hotfix Release 6.1.1
  • Loading branch information
Jack-Byrne authored May 1, 2020
2 parents a3edf21 + 6255b4f commit 0ce7625
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
4 changes: 4 additions & 0 deletions src/components/policy/policy_regular/src/cache_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,10 @@ std::shared_ptr<policy_table::Table> CacheManager::GenerateSnapshot() {
snapshot_->policy_table.module_meta = pt_->policy_table.module_meta;
snapshot_->policy_table.usage_and_error_counts =
pt_->policy_table.usage_and_error_counts;
snapshot_->policy_table.usage_and_error_counts->app_level =
pt_->policy_table.usage_and_error_counts->app_level;
snapshot_->policy_table.usage_and_error_counts->mark_initialized();
snapshot_->policy_table.usage_and_error_counts->app_level->mark_initialized();
snapshot_->policy_table.device_data = pt_->policy_table.device_data;

if (pt_->policy_table.vehicle_data.is_initialized()) {
Expand Down

0 comments on commit 0ce7625

Please sign in to comment.