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

Skip to content
Snippets Groups Projects
Commit 088290c5 authored by zzz's avatar zzz
Browse files

Startup: Delay ReadConfigJob another minute

  - code cleanup
parent 6685acfe
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import net.i2p.util.Log;
/** This actually boots almost everything */
class BootCommSystemJob extends JobImpl {
private Log _log;
private final Log _log;
public static final String PROP_USE_TRUSTED_LINKS = "router.trustedLinks";
......@@ -47,7 +47,7 @@ class BootCommSystemJob extends JobImpl {
getContext().jobQueue().addJob(new StartAcceptingClientsJob(getContext()));
Job j = new ReadConfigJob(getContext());
j.getTiming().setStartAfter(getContext().clock().now() + 60*1000);
j.getTiming().setStartAfter(getContext().clock().now() + 2*60*1000);
getContext().jobQueue().addJob(j);
((RouterClock) getContext().clock()).addShiftListener(getContext().router());
}
......
......@@ -46,8 +46,7 @@ public class ReadConfigJob extends JobImpl {
if (log.shouldLog(Log.WARN))
log.warn("Reloaded " + configFile);
}
getTiming().setStartAfter(getContext().clock().now() + DELAY);
getContext().jobQueue().addJob(this);
requeue(DELAY);
}
private boolean shouldReread(File configFile) {
......
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