diff options
author | Herasym Oleh <oolleehh@gmail.com> | 2017-04-26 18:44:41 +0300 |
---|---|---|
committer | okozlovlux <okozlov@luxoft.com> | 2017-05-17 19:27:11 +0300 |
commit | 3f7e9df16be602c3a071a51f2d958fb2008a27b3 (patch) | |
tree | 4f3e79755c434db615580e65c50fcd45042e6482 /src/components/policy/policy_regular/src/policy_manager_impl.cc | |
parent | c424760b8a089f507ee93f749f790ee9e594de88 (diff) | |
download | sdl_core-3f7e9df16be602c3a071a51f2d958fb2008a27b3.tar.gz |
Fix wrong if case in policy
Diffstat (limited to 'src/components/policy/policy_regular/src/policy_manager_impl.cc')
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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 5f28d4405f..67b3feb070 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -79,6 +79,7 @@ PolicyManagerImpl::PolicyManagerImpl() , ignition_check(true) , retry_sequence_url_(0, 0, "") , wrong_ptu_update_received_(false) + , send_on_update_sent_out_(false) , trigger_ptu_(false) { } @@ -857,10 +858,10 @@ void PolicyManagerImpl::OnUpdateStarted() { LOG4CXX_DEBUG(logger_, "Update timeout will be set to (milisec): " << update_timeout); - wrong_ptu_update_received_ = + send_on_update_sent_out_ = !wrong_ptu_update_received_ && !update_status_manager_.IsUpdatePending(); - if (wrong_ptu_update_received_) { + if (send_on_update_sent_out_) { update_status_manager_.OnUpdateSentOut(update_timeout); } cache_->SaveUpdateRequired(true); |