We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4da0d59 commit 60b49f5Copy full SHA for 60b49f5
org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/HotCodeReplaceErrorDialog.java
@@ -160,8 +160,11 @@ public void run() {
160
public void handleDebugEvents(DebugEvent[] events) {
161
for (DebugEvent event : events) {
162
if (event.getSource() instanceof JDIThread de) {
163
- if (de.isTerminated()) {
164
- Display.getDefault().asyncExec(() -> this.close());
+ if (de.isTerminated() && de.getLaunch().equals(this.target.getLaunch())) {
+ Display.getDefault().asyncExec(() -> {
165
+ this.close();
166
+ DebugPlugin.getDefault().removeDebugEventListener(this);
167
+ });
168
}
169
170
0 commit comments