forked from I2P_Developers/i2p.i2p
NetDB: Use new isNewer() method for LS comparison in another spot
This commit is contained in:
@ -102,7 +102,7 @@ class RepublishLeaseSetJob extends JobImpl {
|
||||
public void runJob() {
|
||||
// Don't requeue if there's a newer LS, KNDF will have already done that
|
||||
LeaseSet ls = _facade.lookupLeaseSetLocally(_ls.getHash());
|
||||
if (ls != null && ls.getEarliestLeaseDate() == _ls.getEarliestLeaseDate()) {
|
||||
if (ls != null && !KademliaNetworkDatabaseFacade.isNewer(ls, _ls)) {
|
||||
requeueRepublish();
|
||||
} else {
|
||||
if (_log.shouldWarn())
|
||||
|
Reference in New Issue
Block a user