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

Skip to content
Snippets Groups Projects
Commit 33407fd5 authored by zzz's avatar zzz
Browse files

reduce delays (cuts 10s from router startup

parent 513b93f7
No related branches found
No related tags found
No related merge requests found
......@@ -189,7 +189,10 @@ public class Timestamper implements Runnable {
long expectedDelta = 0;
_wellSynced = false;
for (int i = 0; i < _concurringServers; i++) {
try { Thread.sleep(10*1000); } catch (InterruptedException ie) {}
if (i > 0) {
// this delays startup when net is disconnected or the timeserver list is bad, don't make it too long
try { Thread.sleep(2*1000); } catch (InterruptedException ie) {}
}
now = NtpClient.currentTime(serverList);
long delta = now - _context.clock().now();
found[i] = delta;
......
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