Skip to content

Commit

Permalink
Apply temporary patch/fix for JBVFS-107
Browse files Browse the repository at this point in the history
  • Loading branch information
n1hility committed Apr 17, 2009
1 parent 4a31fa5 commit de9d1af
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -33,6 +33,8 @@
import java.util.Map;
import java.util.TreeMap;
import java.util.HashMap;
import java.util.Set;
import java.util.HashSet;
import java.util.concurrent.CopyOnWriteArrayList;

import org.jboss.logging.Logger;
Expand Down Expand Up @@ -427,6 +429,7 @@ public Iterable<TempInfo> getTempInfos()
List<TempInfo> list = entry.getValue();
if (list != null && list.isEmpty() == false)
{
Set<TempInfo> invalidTempInfos = new HashSet<TempInfo>();
Iterator<TempInfo> listIter = list.iterator();
while(listIter.hasNext())
{
Expand All @@ -441,9 +444,12 @@ public Iterable<TempInfo> getTempInfos()
}
else
{
listIter.remove();
invalidTempInfos.add(ti);
}
}
for (TempInfo ti : invalidTempInfos) {
list.remove(ti);
}
}
if (list == null || list.isEmpty())
{
Expand Down

0 comments on commit de9d1af

Please sign in to comment.