Changeset d84b1125


Ignore:
Timestamp:
Aug 2, 2009 4:16:57 PM (11 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7aa051e
Parents:
8d4a189
Message:
  • Timestamper: Don't start thread if not enabled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/time/Timestamper.java

    r8d4a189 rd84b1125  
    5353    }
    5454    public Timestamper(I2PAppContext ctx, UpdateListener lsnr, boolean daemon) {
     55        // Don't bother starting a thread if we are disabled.
     56        // This means we no longer check every 5 minutes to see if we got enabled,
     57        // so the property must be set at startup.
     58        // We still need to be instantiated since the router calls clock().getTimestamper().waitForInitialization()
     59        String disabled = ctx.getProperty(PROP_DISABLED, DEFAULT_DISABLED);
     60        if (Boolean.valueOf(disabled).booleanValue()) {
     61            _initialized = true;
     62            return;
     63        }
    5564        _context = ctx;
    5665        _daemon = daemon;
Note: See TracChangeset for help on using the changeset viewer.