Skip to content

Commit

Permalink
fix: DSPProcess#getExitValue returns 0 if debug process still runs
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jul 10, 2024
1 parent bf6cddc commit 59eca3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public String getAttribute(String key) {

@Override
public int getExitValue() throws DebugException {
if (handle.isPresent() && !handle.get().isAlive()) {
if (handle.isPresent() && handle.get().isAlive()) {
throw new DebugException(Status.error(handle.get().pid() + " is still running"));
}
return 0;
Expand Down

0 comments on commit 59eca3f

Please sign in to comment.