mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
do not use disposed alarm
This commit is contained in:
@@ -584,13 +584,15 @@ public class DebuggerSession implements AbstractDebuggerSession {
|
||||
}
|
||||
|
||||
private void notifyThreadsRefresh() {
|
||||
myUpdateAlarm.cancelAllRequests();
|
||||
myUpdateAlarm.addRequest(new Runnable() {
|
||||
public void run() {
|
||||
final DebuggerStateManager contextManager = getContextManager();
|
||||
contextManager.fireStateChanged(contextManager.getContext(), EVENT_THREADS_REFRESH);
|
||||
}
|
||||
}, 100, ModalityState.NON_MODAL);
|
||||
if (!myUpdateAlarm.isDisposed()) {
|
||||
myUpdateAlarm.cancelAllRequests();
|
||||
myUpdateAlarm.addRequest(new Runnable() {
|
||||
public void run() {
|
||||
final DebuggerStateManager contextManager = getContextManager();
|
||||
contextManager.fireStateChanged(contextManager.getContext(), EVENT_THREADS_REFRESH);
|
||||
}
|
||||
}, 100, ModalityState.NON_MODAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user