From 104669bd48d4fe4edc40fb4c2280b80286ffabb1 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 14 Jun 2007 22:35:47 +0000 Subject: [PATCH] fix for http://www.yacy-forum.de/viewtopic.php?p=37177#37177 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3896 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/AccessTracker_p.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htroot/AccessTracker_p.java b/htroot/AccessTracker_p.java index fe3b9e35a..7a6874269 100644 --- a/htroot/AccessTracker_p.java +++ b/htroot/AccessTracker_p.java @@ -25,6 +25,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import java.util.ArrayList; +import java.util.ConcurrentModificationException; import java.util.Date; import java.util.HashMap; import java.util.Iterator; @@ -60,6 +61,7 @@ public class AccessTracker_p { String host; TreeMap access; int entCount = 0; + try { while ((entCount < maxCount) && (i.hasNext())) { host = (String) i.next(); access = switchboard.accessTrack(host); @@ -70,6 +72,7 @@ public class AccessTracker_p { prop.put("page_list_" + entCount + "_countHour", access.tailMap(new Long(System.currentTimeMillis() - 1000 * 60 * 60)).size()); entCount++; } + } catch (ConcurrentModificationException e) {} // we dont want to serialize this prop.put("page_list", entCount); prop.put("page_num", entCount); }