I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 00e33904 authored by eyedeekay's avatar eyedeekay
Browse files

Router: reverse changes to RepublishLeaseSetJob

parent c67ff137
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ class RepublishLeaseSetJob extends JobImpl { ...@@ -44,7 +44,7 @@ class RepublishLeaseSetJob extends JobImpl {
try { try {
if (getContext().clientManager().isLocal(_dest)) { if (getContext().clientManager().isLocal(_dest)) {
LeaseSet ls = getContext().clientNetDb(_dest).lookupLeaseSetLocally(_dest); LeaseSet ls = _facade.lookupLeaseSetLocally(_dest);
if (ls != null) { if (ls != null) {
if (!ls.isCurrent(Router.CLOCK_FUDGE_FACTOR)) { if (!ls.isCurrent(Router.CLOCK_FUDGE_FACTOR)) {
if (_log.shouldLog(Log.WARN)) if (_log.shouldLog(Log.WARN))
...@@ -101,12 +101,7 @@ class RepublishLeaseSetJob extends JobImpl { ...@@ -101,12 +101,7 @@ class RepublishLeaseSetJob extends JobImpl {
public void runJob() { public void runJob() {
// Don't requeue if there's a newer LS, KNDF will have already done that // Don't requeue if there's a newer LS, KNDF will have already done that
LeaseSet ls = null; LeaseSet ls = _facade.lookupLeaseSetLocally(_ls.getHash());
if (_dest != null)
ls = getContext().clientNetDb(_dest).lookupLeaseSetLocally(_ls.getHash());
else
getContext().netDb().lookupLeaseSetLocally(_ls.getHash());
// ^ _dest should never be null here, right? So maybe instead we return immediately?
if (ls != null && ls.getEarliestLeaseDate() == _ls.getEarliestLeaseDate()) { if (ls != null && ls.getEarliestLeaseDate() == _ls.getEarliestLeaseDate()) {
requeueRepublish(); requeueRepublish();
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment