diff options
author | Andriy Byzhynar <abyzhynar@luxoft.com> | 2019-08-23 15:56:39 +0300 |
---|---|---|
committer | Andriy Byzhynar <abyzhynar@luxoft.com> | 2019-08-23 15:56:39 +0300 |
commit | 0e485c61c13b900983fd0a58af32c38e0505b505 (patch) | |
tree | 4dedd57676efdec6313a250497455a32249ca8db | |
parent | 9821bd726af2f27e440339b44a3d959f2895c010 (diff) | |
download | sdl_core-0e485c61c13b900983fd0a58af32c38e0505b505.tar.gz |
Remove redundant condition lead to core crash
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc index f6d173d080..b39e50b222 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/register_app_interface_request.cc @@ -829,7 +829,13 @@ void RegisterAppInterfaceRequest::SendRegisterAppInterfaceResponseToMobile( application->mac_address()); } - if (resumption && mobile_apis::Result::RESUME_FAILED != result_code) { + // If app is in resuming state + // DisplayCapabilitiesBuilder has to collect all the information + // from incoming HMI notifications and send only one notification + // to mobile app, even if hash does not match, which means that app data + // will not be resumed, notification should be sent for default window as + // it will be resumed in any case + if (resumption) { resumer.StartWaitingForDisplayCapabilitiesUpdate(application); } |