mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't leak ChooseByNameBase instances via never ending incremental update alarms
This commit is contained in:
@@ -1384,7 +1384,7 @@ public abstract class ChooseByNameBase {
|
||||
|
||||
private void scheduleIncrementalListUpdate(Set<Object> elements, int lastCount) {
|
||||
myUpdateListAlarm.addRequest(() -> {
|
||||
if (myCalcElementsThread != this) return;
|
||||
if (myCalcElementsThread != this || !myProgress.isRunning()) return;
|
||||
|
||||
int count = elements.size();
|
||||
if (count > lastCount) {
|
||||
|
||||
Reference in New Issue
Block a user