mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
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