Skip to content

Commit

Permalink
Fix CLI exiting before target process has quit
Browse files Browse the repository at this point in the history
  • Loading branch information
pathartl committed Dec 29, 2023
1 parent da9c571 commit 67d21a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SRWE.CLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 67d21a6

Please sign in to comment.