summaryrefslogtreecommitdiff
path: root/src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h
diff options
context:
space:
mode:
authorYana Chernysheva (GitHub) <59469418+ychernysheva@users.noreply.github.com>2022-01-19 18:21:43 +0200
committerGitHub <noreply@github.com>2022-01-19 11:21:43 -0500
commitf6d2ff1cd90dd2dcb2b4fd4f5ca11224e13229ae (patch)
tree41c3a503b1265853c3a4ffadcf53aaf31fe118bb /src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h
parent880f4bb2e3ea048f070917077230c3bb832b999c (diff)
downloadsdl_core-f6d2ff1cd90dd2dcb2b4fd4f5ca11224e13229ae.tar.gz
Move app launcher stop before unregister app (#3825)
* Move app launcher stop before unregister app The applauncher has to be stopped before appropriate application will be unregistered. Otherwise it could lead to core crash, when Launch controller will try to run already non existed application Co-authored-by: Andrii Kalinich <AKalinich@luxoft.com> Co-authored-by: OlhaVorobiova <olha.vorobiova@dxc.com> Co-authored-by: VladSemenyuk <vsemenyuk@luxoft.com>
Diffstat (limited to 'src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h')
-rw-r--r--src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h b/src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h
index 986f4ad4ff..32cbc46245 100644
--- a/src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h
+++ b/src/components/application_manager/include/application_manager/app_launch/app_launch_ctrl_impl.h
@@ -69,6 +69,7 @@ class AppLaunchCtrlImpl : public AppLaunchCtrl {
void OnAppRegistered(const application_manager::Application& app) OVERRIDE;
void OnDeviceConnected(const std::string& device_mac) OVERRIDE;
void OnMasterReset() OVERRIDE;
+ void Stop() OVERRIDE;
private:
const AppLaunchSettings& settings_;
@@ -77,6 +78,7 @@ class AppLaunchCtrlImpl : public AppLaunchCtrl {
AppsLauncher apps_launcher_;
DeviceAppsLauncher device_apps_launcher_;
+ sync_primitives::Lock device_apps_launcher_lock_;
DISALLOW_COPY_AND_ASSIGN(AppLaunchCtrlImpl);
};