Skip to content

Commit ad23569

Browse files
committed
Remove Debug listener on HCR pop close
Remove debug event listener when HCR failure dialog is closed after thread termination
1 parent fb3189a commit ad23569

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/HotCodeReplaceErrorDialog.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,10 @@ public void handleDebugEvents(DebugEvent[] events) {
161161
for (DebugEvent event : events) {
162162
if (event.getSource() instanceof JDIThread de) {
163163
if (de.isTerminated()) {
164-
Display.getDefault().asyncExec(() -> this.close());
164+
Display.getDefault().asyncExec(() -> {
165+
this.close();
166+
DebugPlugin.getDefault().removeDebugEventListener(this);
167+
});
165168
}
166169
}
167170
}

0 commit comments

Comments
 (0)