diff options
author | Yana Chernysheva (GitHub) <59469418+ychernysheva@users.noreply.github.com> | 2022-01-19 18:21:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-19 11:21:43 -0500 |
commit | f6d2ff1cd90dd2dcb2b4fd4f5ca11224e13229ae (patch) | |
tree | 41c3a503b1265853c3a4ffadcf53aaf31fe118bb /src/components/application_manager/include/application_manager/app_launch/device_apps_launcher.h | |
parent | 880f4bb2e3ea048f070917077230c3bb832b999c (diff) | |
download | sdl_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/device_apps_launcher.h')
-rw-r--r-- | src/components/application_manager/include/application_manager/app_launch/device_apps_launcher.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/application_manager/include/application_manager/app_launch/device_apps_launcher.h b/src/components/application_manager/include/application_manager/app_launch/device_apps_launcher.h index f27e4569fc..2ffec0e065 100644 --- a/src/components/application_manager/include/application_manager/app_launch/device_apps_launcher.h +++ b/src/components/application_manager/include/application_manager/app_launch/device_apps_launcher.h @@ -35,6 +35,7 @@ class DeviceAppsLauncherImpl { }; bool StopLaunchingAppsOnDevice(const std::string& device_mac); + void StopLaunchingAppsOnAllDevices(); private: sync_primitives::Lock launchers_lock_; @@ -60,6 +61,7 @@ class DeviceAppsLauncher { const std::string& device_mac, const std::vector<ApplicationDataPtr>& applications_to_launch); bool StopLaunchingAppsOnDevice(const std::string& device_mac); + void StopLaunchingAppsOnAllDevices(); const AppLaunchSettings& settings() const; |