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

Skip to content
Snippets Groups Projects
Commit bc1b020e authored by jrandom's avatar jrandom Committed by zzz
Browse files

put the timestamper in the background by default (so Base64 completes, thanks duck!)

parent 5fdff16b
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ public class Timestamper implements Runnable {
private List _listeners;
private int _queryFrequency;
private boolean _disabled;
private boolean _daemon;
private static final int DEFAULT_QUERY_FREQUENCY = 5*60*1000;
private static final String DEFAULT_SERVER_LIST = "pool.ntp.org, pool.ntp.org";
......@@ -31,11 +32,15 @@ public class Timestamper implements Runnable {
public static final String PROP_DISABLED = "time.disabled";
public Timestamper(I2PAppContext ctx) {
this(ctx, null);
this(ctx, null, true);
}
public Timestamper(I2PAppContext ctx, UpdateListener lsnr) {
this(ctx, lsnr, true);
}
public Timestamper(I2PAppContext ctx, UpdateListener lsnr, boolean daemon) {
_context = ctx;
_daemon = daemon;
_servers = new ArrayList(1);
_listeners = new ArrayList(1);
if (lsnr != null)
......@@ -83,6 +88,7 @@ public class Timestamper implements Runnable {
private void startTimestamper() {
I2PThread t = new I2PThread(this, "Timestamper");
t.setPriority(I2PThread.MIN_PRIORITY);
t.setDaemon(_daemon);
t.start();
}
......
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