Skip to content

Commit

Permalink
fixed round-robin method of peer-ping order (the successfully pinged …
Browse files Browse the repository at this point in the history
…peer was not updated to current last-seed date)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4093 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 11, 2007
1 parent a1dcd06 commit 07d1e98
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/de/anomic/yacy/yacyCore.java
Expand Up @@ -322,6 +322,9 @@ public void run() {
// success! we have published our peer to a senior peer
// update latest news from the other peer
log.logInfo("publish: handshaked " + this.seed.get(yacySeed.PEERTYPE, yacySeed.PEERTYPE_SENIOR) + " peer '" + this.seed.getName() + "' at " + this.seed.getPublicAddress());
// update last seed date
this.seed.setLastSeenUTC();
peerActions.peerArrival(this.seed, true);
}
} catch (Exception e) {
log.logSevere("publishThread: error with target seed " + seed.toString() + ": " + e.getMessage(), e);
Expand Down

0 comments on commit 07d1e98

Please sign in to comment.