Changeset 00a5d195


Ignore:
Timestamp:
Dec 11, 2015 3:16:16 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7680ecb
Parents:
2d1ac7b
Message:

Limit wait for NTP to 45 seconds (ticket #1725)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/time/RouterTimestamper.java

    r2d1ac7b r00a5d195  
    4646    private static final int DEFAULT_TIMEOUT = 10*1000;
    4747    private static final int SHORT_TIMEOUT = 5*1000;
     48    private static final long MAX_WAIT_INITIALIZATION = 45*1000;
    4849   
    4950    public static final String PROP_QUERY_FREQUENCY = "time.queryFrequencyMs";
     
    142143            synchronized (this) {
    143144                if (!_initialized)
    144                     wait();
     145                    wait(MAX_WAIT_INITIALIZATION);
    145146            }
    146147        } catch (InterruptedException ie) {}
Note: See TracChangeset for help on using the changeset viewer.