summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLitvinenkoIra <ilytvynenko@luxoft.com>2020-04-18 20:47:43 +0300
committerLitvinenkoIra <ilytvynenko@luxoft.com>2020-04-18 20:47:43 +0300
commit5235cb8475b2d418382ae37fae15c689cf6beabe (patch)
treee190e48343be8c9e3d6498841b4223ae47f083b2
parent81084e3c0ee99305f52107f5b52e043151d1a5ac (diff)
downloadsdl_core-fix/endservice_twice.tar.gz
Prevent EndService double sendingfix/endservice_twice
Remove app_id from navi_service_status_ before unregistering the app in case EndServiceAck did not come for at least one of the services, in order to avoid sending the EndService again during unregistration
-rw-r--r--src/components/application_manager/src/application_manager_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc
index 3b638c91e9..3166f7383d 100644
--- a/src/components/application_manager/src/application_manager_impl.cc
+++ b/src/components/application_manager/src/application_manager_impl.cc
@@ -3896,6 +3896,7 @@ void ApplicationManagerImpl::CloseNaviApp() {
if (navi_service_status_.end() != it) {
if (it->second.first || it->second.second) {
unregister = true;
+ navi_service_status_.erase(it);
}
}
}