From 9f61819139ad4944b73257893936d1328eed15b0 Mon Sep 17 00:00:00 2001 From: "Yana Chernysheva (GitHub)" <59469418+ychernysheva@users.noreply.github.com> Date: Wed, 30 Sep 2020 16:29:48 +0300 Subject: Unsubscribe from event in VehicleInfoPendingResumptionHandler (#3515) --- .../src/commands/hmi/vi_subscribe_vehicle_data_request.cc | 1 + .../vehicle_info_plugin/src/vehicle_info_pending_resumption_handler.cc | 1 + 2 files changed, 2 insertions(+) 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_); -- cgit v1.2.1