From cadede9c9e7d20ca4a7049ad51fc42e6f14f6498 Mon Sep 17 00:00:00 2001 From: "Yana Chernysheva (GitHub)" <59469418+ychernysheva@users.noreply.github.com> Date: Tue, 22 Sep 2020 16:23:41 +0300 Subject: Add check whether restoring of all required data was completed (#3508) --- .../src/vehicle_info_pending_resumption_handler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 a6e6148793..d7b3f6ec8f 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 @@ -197,8 +197,10 @@ void VehicleInfoPendingResumptionHandler::TriggerPendingResumption() { << " is already waiting for HMI response"); return; } - SendHMIRequestForNotSubscribed(pending_resumption); - pending_resumption.waiting_for_hmi_response_ = true; + if (!pending_resumption.IsSuccessfullyDone()) { + SendHMIRequestForNotSubscribed(pending_resumption); + pending_resumption.waiting_for_hmi_response_ = true; + } } void VehicleInfoPendingResumptionHandler::on_event( -- cgit v1.2.1