mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Return from filterItems() preliminarily when alarm *is* disposed
This commit is contained in:
@@ -80,10 +80,10 @@ class TaskItemProvider implements ChooseByNameItemProvider, Disposable {
|
||||
oldFeature.cancel(true);
|
||||
}
|
||||
|
||||
if (!myAlarm.isDisposed()) {
|
||||
myAlarm.addRequest(future, DELAY_PERIOD);
|
||||
if (myAlarm.isDisposed()) {
|
||||
return false;
|
||||
}
|
||||
myAlarm.addRequest(future, DELAY_PERIOD);
|
||||
|
||||
try {
|
||||
List<Task> tasks = future.get();
|
||||
|
||||
Reference in New Issue
Block a user