forked from I2P_Developers/i2p.i2p
Router: Don't check config files for reload on Android
This commit is contained in:
@ -67,10 +67,12 @@ abstract class LogWriterBase implements Runnable {
|
||||
|
||||
public void run() {
|
||||
_write = true;
|
||||
// don't bother on Android
|
||||
final boolean shouldReadConfig = !SystemVersion.isAndroid();
|
||||
try {
|
||||
while (_write) {
|
||||
flushRecords();
|
||||
if (_write)
|
||||
if (_write && shouldReadConfig)
|
||||
rereadConfig();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
@ -14,6 +14,7 @@ import net.i2p.router.RouterContext;
|
||||
import net.i2p.router.RouterClock;
|
||||
import net.i2p.router.tasks.ReadConfigJob;
|
||||
import net.i2p.util.Log;
|
||||
import net.i2p.util.SystemVersion;
|
||||
|
||||
/** This actually boots almost everything */
|
||||
class BootCommSystemJob extends JobImpl {
|
||||
@ -46,9 +47,12 @@ class BootCommSystemJob extends JobImpl {
|
||||
// start I2CP
|
||||
getContext().jobQueue().addJob(new StartAcceptingClientsJob(getContext()));
|
||||
|
||||
if (!SystemVersion.isAndroid()) {
|
||||
Job j = new ReadConfigJob(getContext());
|
||||
j.getTiming().setStartAfter(getContext().clock().now() + 2*60*1000);
|
||||
getContext().jobQueue().addJob(j);
|
||||
}
|
||||
|
||||
((RouterClock) getContext().clock()).addShiftListener(getContext().router());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user