Skip to content

Commit

Permalink
DSPProcess::getExitValue should only raise an exception if the proces…
Browse files Browse the repository at this point in the history
…s is still alive
  • Loading branch information
FlorianKroiss authored and mickaelistria committed Aug 7, 2024
1 parent a7bb8b7 commit 3a99463
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,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 3a99463

Please sign in to comment.