diff options
author | Yana Chernysheva (GitHub) <59469418+ychernysheva@users.noreply.github.com> | 2020-09-30 16:29:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 09:29:48 -0400 |
commit | 9f61819139ad4944b73257893936d1328eed15b0 (patch) | |
tree | 842c4c850f6524e57d625d45c68a5a8c347439f0 | |
parent | cadede9c9e7d20ca4a7049ad51fc42e6f14f6498 (diff) | |
download | sdl_core-9f61819139ad4944b73257893936d1328eed15b0.tar.gz |
Unsubscribe from event in VehicleInfoPendingResumptionHandler (#3515)
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/hmi/vi_subscribe_vehicle_data_request.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/hmi/vi_subscribe_vehicle_data_request.cc index 0863dc875a..da925e68e7 100644 --- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/hmi/vi_subscribe_vehicle_data_request.cc +++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/commands/hmi/vi_subscribe_vehicle_data_request.cc @@ -80,6 +80,7 @@ void VISubscribeVehicleDataRequest::Run() { void VISubscribeVehicleDataRequest::onTimeOut() { event_engine::Event timeout_event( hmi_apis::FunctionID::VehicleInfo_SubscribeVehicleData); + SDL_LOG_AUTO_TRACE(); auto error_response = MessageHelper::CreateNegativeResponseFromHmi( function_id(), diff --git a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_pending_resumption_handler.cc b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_pending_resumption_handler.cc index d7b3f6ec8f..bb71ea26b1 100644 --- a/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_pending_resumption_handler.cc +++ b/src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_pending_resumption_handler.cc @@ -138,6 +138,7 @@ void VehicleInfoPendingResumptionHandler::RaiseFinishedPendingResumption( ext.subscribeToVehicleInfo(subscription); } + unsubscribe_from_event(VehicleInfo_SubscribeVehicleData); auto fake_response = CreateFakeResponseFromHMI(pending_resumption.subscription_results_, pending_resumption.fake_corr_id_); |