fixed round-robin method of peer-ping order (the successfully pinged 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
pull/1/head
orbiter 17 years ago
parent a1dcd065ad
commit 07d1e98909

@ -322,6 +322,9 @@ public class yacyCore {
// success! we have published our peer to a senior peer // success! we have published our peer to a senior peer
// update latest news from the other 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()); 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) { } catch (Exception e) {
log.logSevere("publishThread: error with target seed " + seed.toString() + ": " + e.getMessage(), e); log.logSevere("publishThread: error with target seed " + seed.toString() + ": " + e.getMessage(), e);

Loading…
Cancel
Save