diff options
author | Yana Chernysheva (GitHub) <59469418+ychernysheva@users.noreply.github.com> | 2020-09-22 16:23:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 09:23:41 -0400 |
commit | cadede9c9e7d20ca4a7049ad51fc42e6f14f6498 (patch) | |
tree | 46a424b688d0bbeee827383d66b07fc046d44b60 | |
parent | 1b092819ddcd23cd84f78fd30f60723bacf4750a (diff) | |
download | sdl_core-cadede9c9e7d20ca4a7049ad51fc42e6f14f6498.tar.gz |
Add check whether restoring of all required data was completed (#3508)
-rw-r--r-- | src/components/application_manager/rpc_plugins/vehicle_info_plugin/src/vehicle_info_pending_resumption_handler.cc | 6 |
1 files 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( |