forked from I2P_Developers/i2p.i2p
* JobQueue, RepublishLeaseSetJob: Out-of-order JobQueue 3rd try to fix
This commit is contained in:
@ -561,6 +561,8 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
|
|||||||
// Don't spam the floodfills. In addition, always delay a few seconds since there may
|
// Don't spam the floodfills. In addition, always delay a few seconds since there may
|
||||||
// be another leaseset change coming along momentarily.
|
// be another leaseset change coming along momentarily.
|
||||||
long nextTime = Math.max(j.lastPublished() + RepublishLeaseSetJob.REPUBLISH_LEASESET_TIMEOUT, _context.clock().now() + PUBLISH_DELAY);
|
long nextTime = Math.max(j.lastPublished() + RepublishLeaseSetJob.REPUBLISH_LEASESET_TIMEOUT, _context.clock().now() + PUBLISH_DELAY);
|
||||||
|
// remove first since queue is a TreeSet now...
|
||||||
|
_context.jobQueue().removeJob(j);
|
||||||
j.getTiming().setStartAfter(nextTime);
|
j.getTiming().setStartAfter(nextTime);
|
||||||
_context.jobQueue().addJob(j);
|
_context.jobQueue().addJob(j);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user