Changeset ce74e49


Ignore:
Timestamp:
Jan 26, 2010 7:49:35 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
76c1f47
Parents:
977d39ae
Message:
  • Clock: Don't refuse to update because of peer skew the first time
File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/RouterClock.java

    r977d39ae rce74e49  
    3030    @Override
    3131    public void setOffset(long offsetMs, boolean force) {
    32 
    33         if (false) return;
    3432        long delta = offsetMs - _offset;
    3533        if (!force) {
     
    5553
    5654            // If so configured, check sanity of proposed clock offset
    57             if (Boolean.valueOf(_contextRC.getProperty("router.clockOffsetSanityCheck","true")).booleanValue() == true) {
     55            if (Boolean.valueOf(_contextRC.getProperty("router.clockOffsetSanityCheck","true")).booleanValue() &&
     56                _alreadyChanged) {
    5857
    5958                // Try calculating peer clock skew
Note: See TracChangeset for help on using the changeset viewer.