diff --git a/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java b/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java index 9d402f9d0..a90302de0 100644 --- a/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java +++ b/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java @@ -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;