From 67d21a617187b21b07fa4b8fd304015c3fbe4fd3 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Thu, 28 Dec 2023 18:46:33 -0600 Subject: [PATCH] Fix CLI exiting before target process has quit --- SRWE.CLI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SRWE.CLI/Program.cs b/SRWE.CLI/Program.cs index bea506a..b23d985 100644 --- a/SRWE.CLI/Program.cs +++ b/SRWE.CLI/Program.cs @@ -82,7 +82,7 @@ static void Main(string[] args) } } - if (targetProcess != null && targetProcess.HasExited) + if (targetProcess != null && !targetProcess.HasExited) targetProcess.WaitForExit(); else if (entryProcess != null && !entryProcess.HasExited) entryProcess.WaitForExit();