summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSho Amano <samano@xevo.com>2018-06-28 16:06:58 +0900
committerSho Amano <samano@xevo.com>2018-06-28 17:36:33 +0900
commit02809b82e30547da4e0b9af0f6db924930d97a7d (patch)
treefe86d8d3818026719d00bb5348db4c2c339215b7
parent7eaaf662ba2b60f177c4999a21178f7cf55b24c4 (diff)
downloadsdl_core-02809b82e30547da4e0b9af0f6db924930d97a7d.tar.gz
Revert "End navi services on unregistering application"
This reverts commit 7f9ed8aa6ab076d7f22f5e06a04bdfa607430e5b.
-rw-r--r--src/components/application_manager/src/application_manager_impl.cc1
-rw-r--r--src/components/application_manager/src/commands/mobile/unregister_app_interface_request.cc1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/components/application_manager/src/application_manager_impl.cc b/src/components/application_manager/src/application_manager_impl.cc
index d4d029deaf..a69b6a34a1 100644
--- a/src/components/application_manager/src/application_manager_impl.cc
+++ b/src/components/application_manager/src/application_manager_impl.cc
@@ -3342,7 +3342,6 @@ void ApplicationManagerImpl::UnregisterApplication(
MessageHelper::SendUnsubscribedWayPoints(*this);
}
- EndNaviServices(app_id);
{
sync_primitives::AutoLock lock(navi_service_status_lock_);
diff --git a/src/components/application_manager/src/commands/mobile/unregister_app_interface_request.cc b/src/components/application_manager/src/commands/mobile/unregister_app_interface_request.cc
index d7056a624e..d40ad9c870 100644
--- a/src/components/application_manager/src/commands/mobile/unregister_app_interface_request.cc
+++ b/src/components/application_manager/src/commands/mobile/unregister_app_interface_request.cc
@@ -53,6 +53,7 @@ void UnregisterAppInterfaceRequest::Run() {
connection_key(),
mobile_api::AppInterfaceUnregisteredReason::INVALID_ENUM),
commands::Command::ORIGIN_SDL);
+ application_manager_.EndNaviServices(connection_key());
application_manager_.UnregisterApplication(connection_key(),
mobile_apis::Result::SUCCESS);
SendResponse(true, mobile_apis::Result::SUCCESS);