diff --git a/source/net/yacy/peers/PeerActions.java b/source/net/yacy/peers/PeerActions.java index 71666a3e2..b249d5c95 100644 --- a/source/net/yacy/peers/PeerActions.java +++ b/source/net/yacy/peers/PeerActions.java @@ -109,14 +109,7 @@ public class PeerActions { return false; } - // disconnection time - long dtimeUTC0; final Seed disconnectedSeed = this.seedDB.getDisconnected(seed.hash); - if (disconnectedSeed == null) { - dtimeUTC0 = 0; // never disconnected: virtually disconnected maximum time ago - } else { - dtimeUTC0 = disconnectedSeed.getLong("dct", 0); - } if (direct) { // remember the moment @@ -130,9 +123,6 @@ public class PeerActions { if (Math.abs(nowUTC0Time - ctimeUTC0) > 120000) seed.setFlagDirectConnect(false); // 2 minutes } - // update latest version number - if (seed.getVersion() > yacyVersion.latestRelease) yacyVersion.latestRelease = seed.getVersion(); - // prepare to update if (disconnectedSeed != null) { // if the indirect connect aims to announce a peer that we know diff --git a/source/net/yacy/peers/operation/yacyVersion.java b/source/net/yacy/peers/operation/yacyVersion.java index f4436b2a5..d5e1924fc 100644 --- a/source/net/yacy/peers/operation/yacyVersion.java +++ b/source/net/yacy/peers/operation/yacyVersion.java @@ -14,11 +14,6 @@ public class yacyVersion implements Comparator, Comparable