forked from I2P_Developers/i2p.i2p
Startup: Delay ReadConfigJob another minute
- code cleanup
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user