Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

simple fix to get DHT working again (maybe something more has to be done ;) fix for http://forum.yacy-websuche.de/viewtopic.php?f=6&t=1578

danielr538359a0ff8b
diff --git a/source/de/anomic/yacy/yacyPeerSelection.java b/source/de/anomic/yacy/yacyPeerSelection.java
index 368516999..a679d17bb 100644
--- a/source/de/anomic/yacy/yacyPeerSelection.java
+++ b/source/de/anomic/yacy/yacyPeerSelection.java
@@ -94,9 +94,9 @@ public class yacyPeerSelection {
public acceptRemoteIndexSeedEnum(yacySeedDB seedDB, final String starthash, int max) {
this.seedDB = seedDB;
this.se = getDHTSeeds(seedDB, starthash, yacyVersion.YACY_HANDLES_COLLECTION_INDEX);
- this.nextSeed = nextInternal();
- this.doublecheck = new HashSet<String>();
this.remaining = max;
+ this.doublecheck = new HashSet<String>();
+ this.nextSeed = nextInternal();
}
public boolean hasNext() {