Changeset b068f9a


Ignore:
Timestamp:
Oct 2, 2015 1:43:54 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
f93da93
Parents:
5fa059b4
Message:

Router: Don't check config files for reload on Android

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/util/LogWriterBase.java

    r5fa059b4 rb068f9a  
    6868    public void run() {
    6969        _write = true;
     70        // don't bother on Android
     71        final boolean shouldReadConfig = !SystemVersion.isAndroid();
    7072        try {
    7173            while (_write) {
    7274                flushRecords();
    73                 if (_write)
     75                if (_write && shouldReadConfig)
    7476                    rereadConfig();
    7577            }
  • router/java/src/net/i2p/router/startup/BootCommSystemJob.java

    r5fa059b4 rb068f9a  
    1515import net.i2p.router.tasks.ReadConfigJob;
    1616import net.i2p.util.Log;
     17import net.i2p.util.SystemVersion;
    1718
    1819/** This actually boots almost everything */
     
    4748        getContext().jobQueue().addJob(new StartAcceptingClientsJob(getContext()));
    4849
    49         Job j = new ReadConfigJob(getContext());
    50         j.getTiming().setStartAfter(getContext().clock().now() + 2*60*1000);
    51         getContext().jobQueue().addJob(j);
     50        if (!SystemVersion.isAndroid()) {
     51            Job j = new ReadConfigJob(getContext());
     52            j.getTiming().setStartAfter(getContext().clock().now() + 2*60*1000);
     53            getContext().jobQueue().addJob(j);
     54        }
     55
    5256        ((RouterClock) getContext().clock()).addShiftListener(getContext().router());
    5357    }
Note: See TracChangeset for help on using the changeset viewer.