IDEA-118211 - also avoid double dispose

This commit is contained in:
Maxim.Mossienko
2014-01-20 17:44:20 +01:00
parent af674d6ad9
commit 55ee980f0c
@@ -2470,6 +2470,7 @@ public class FileBasedIndexImpl extends FileBasedIndex {
@Override
public void removeIndexableSet(@NotNull IndexableFileSet set) {
if (!myIndexableSetToProjectMap.containsKey(set)) return; // avoid second unfiltered forceUpdate
myChangedFilesCollector.forceUpdate(myIndexableSetToProjectMap.get(set), null, null, true);
IndexingStamp.flushCaches();
myIndexableSets.remove(set);