diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/application_manager/src/commands/request_to_hmi.cc | 1 | ||||
-rw-r--r-- | src/components/application_manager/src/rpc_service_impl.cc | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/application_manager/src/commands/request_to_hmi.cc b/src/components/application_manager/src/commands/request_to_hmi.cc index ac6bda0557..86f25711da 100644 --- a/src/components/application_manager/src/commands/request_to_hmi.cc +++ b/src/components/application_manager/src/commands/request_to_hmi.cc @@ -137,6 +137,7 @@ bool RequestToHMI::Init() { } bool RequestToHMI::CleanUp() { + unsubscribe_from_all_hmi_events(); return true; } diff --git a/src/components/application_manager/src/rpc_service_impl.cc b/src/components/application_manager/src/rpc_service_impl.cc index 67ff7cb6f0..a610bd4371 100644 --- a/src/components/application_manager/src/rpc_service_impl.cc +++ b/src/components/application_manager/src/rpc_service_impl.cc @@ -392,7 +392,9 @@ bool RPCServiceImpl::ManageHMICommand(const commands::MessageSharedPtr message, if (kRequest == message_type) { SDL_LOG_DEBUG("ManageHMICommand"); command->set_warning_info(warning_info); - request_ctrl_.AddHMIRequest(command); + if (!app_manager_.IsStopping()) { + request_ctrl_.AddHMIRequest(command); + } } if (command->Init()) { |