diff options
author | JackLivio <jack@livio.io> | 2016-11-04 14:49:38 -0400 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2016-11-04 14:49:38 -0400 |
commit | cff1817e37f5a1a488fdd6dec8b08ffe017ce8c5 (patch) | |
tree | eea267e2328bca559944bc3aaf123338a10d908d | |
parent | a6c32b45832653d6b851be9b19355fa35f377e07 (diff) | |
download | sdl_core-hotfix/remove_policy_lib_check_for_activate_app.tar.gz |
Remove Policy_lib_check_void() for activate apphotfix/remove_policy_lib_check_for_activate_app
In the event policies are disabled, this policy lib check void would return before sdl has the opportunity to tell the hmi to activate the app. When this function returns because of policy lib check void, an app could never be activated and no warnings or errors are reported.
This check of policies is not needed either since there are the appropriate checks in this function for if policies are enabled, and handles either setting appropriately.
-rw-r--r-- | src/components/application_manager/src/policies/policy_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/application_manager/src/policies/policy_handler.cc b/src/components/application_manager/src/policies/policy_handler.cc index 23f5227667..2098373985 100644 --- a/src/components/application_manager/src/policies/policy_handler.cc +++ b/src/components/application_manager/src/policies/policy_handler.cc @@ -959,7 +959,7 @@ void PolicyHandler::OnIgnitionCycleOver() { void PolicyHandler::OnActivateApp(uint32_t connection_key, uint32_t correlation_id) { LOG4CXX_AUTO_TRACE(logger_); - POLICY_LIB_CHECK_VOID(); + ApplicationSharedPtr app = application_manager_.application(connection_key); if (!app.valid()) { LOG4CXX_WARN(logger_, "Activated App failed: no app found."); |