From 7195207d30adf94b45138d1fa2d74da0697d7c04 Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Mon, 6 Jun 2022 18:47:13 +0200 Subject: [PATCH] Fix GlosSITarget closingunintentionally if not confighured to launch app --- GlosSITarget/AppLauncher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GlosSITarget/AppLauncher.cpp b/GlosSITarget/AppLauncher.cpp index 1f65f5f..64e5ac7 100644 --- a/GlosSITarget/AppLauncher.cpp +++ b/GlosSITarget/AppLauncher.cpp @@ -68,7 +68,7 @@ void AppLauncher::update() } if (!IsProcessRunning(pids_[0])) { spdlog::info("Launched App with PID \"{}\" died", pids_[0]); - if (Settings::launch.closeOnExit && !Settings::launch.waitForChildProcs) { + if (Settings::launch.closeOnExit && !Settings::launch.waitForChildProcs && Settings::launch.launch) { spdlog::info("Configured to close on exit. Shutting down..."); shutdown_(); } @@ -82,7 +82,7 @@ void AppLauncher::update() spdlog::info("Child process with PID \"{}\" died", pid); return !running; }); - if (Settings::launch.closeOnExit && pids_.empty()) { + if (Settings::launch.closeOnExit && pids_.empty() && Settings::launch.launch) { spdlog::info("Configured to close on all children exit. Shutting down..."); shutdown_(); }