From 6dfaf6fef7111d54a15f4447cc9a4576c02956b2 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 4 Mar 2011 10:00:37 +0000 Subject: [PATCH] fix for bug in deletion of old seeds git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7547 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/search/Switchboard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/search/Switchboard.java b/source/de/anomic/search/Switchboard.java index ca1075d1b..c64a79a89 100644 --- a/source/de/anomic/search/Switchboard.java +++ b/source/de/anomic/search/Switchboard.java @@ -1588,7 +1588,7 @@ public final class Switchboard extends serverSwitch { seed = e.next(); if (seed != null) { //list is sorted -> break when peers are too young to delete - if (seed.isLastSeenTimeout(deleteOldSeedsTime)) break; + if (!seed.isLastSeenTimeout(deleteOldSeedsTime)) break; deleteQueue.add(seed.hash); } } @@ -1601,7 +1601,7 @@ public final class Switchboard extends serverSwitch { seed = e.next(); if (seed != null) { //list is sorted -> break when peers are too young to delete - if (seed.isLastSeenTimeout(deleteOldSeedsTime)) break; + if (!seed.isLastSeenTimeout(deleteOldSeedsTime)) break; deleteQueue.add(seed.hash); } }