summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYana Chernysheva (GitHub) <59469418+ychernysheva@users.noreply.github.com>2020-09-22 16:23:41 +0300
committerGitHub <noreply@github.com>2020-09-22 09:23:41 -0400
commitcadede9c9e7d20ca4a7049ad51fc42e6f14f6498 (patch)
tree46a424b688d0bbeee827383d66b07fc046d44b60
parent1b092819ddcd23cd84f78fd30f60723bacf4750a (diff)
downloadsdl_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.cc6
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(