Skip to content

Commit

Permalink
avoid ConcurrentModificationException
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2563 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 13, 2006
1 parent 99699a4 commit b251076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -328,6 +328,7 @@ private boolean deleteFileandDirs (File obj, String msg) {

private void cleanupDoIt(long newCacheSize) {
File obj;
synchronized (cacheAge) {
Iterator iter = this.cacheAge.keySet().iterator();
while (iter.hasNext() && this.curCacheSize >= newCacheSize) {
Object key = iter.next();
Expand All @@ -349,6 +350,7 @@ private void cleanupDoIt(long newCacheSize) {
}
iter.remove();
}
}
}

private void cleanup() {
Expand Down

0 comments on commit b251076

Please sign in to comment.