Fix GlosSITarget closingunintentionally if not confighured to launch app

pull/169/head
Peter Repukat 2 years ago
parent cf2dda5f98
commit 7195207d30

@ -68,7 +68,7 @@ void AppLauncher::update()
} }
if (!IsProcessRunning(pids_[0])) { if (!IsProcessRunning(pids_[0])) {
spdlog::info("Launched App with PID \"{}\" died", 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..."); spdlog::info("Configured to close on exit. Shutting down...");
shutdown_(); shutdown_();
} }
@ -82,7 +82,7 @@ void AppLauncher::update()
spdlog::info("Child process with PID \"{}\" died", pid); spdlog::info("Child process with PID \"{}\" died", pid);
return !running; 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..."); spdlog::info("Configured to close on all children exit. Shutting down...");
shutdown_(); shutdown_();
} }

Loading…
Cancel
Save