cleanup and logging

This commit is contained in:
zzz
2019-06-05 18:00:39 +00:00
parent c01bf47c8a
commit 6d72aeed8c
2 changed files with 5 additions and 0 deletions

View File

@ -895,6 +895,8 @@ public class Router implements RouterClock.ClockShiftListener {
} else if (_state == State.EXPL_TUNNELS_READY) {
changeState(State.RUNNING);
changed = true;
} else {
_log.warn("Invalid state " + _state + " for setNetDbReady()");
}
}
if (changed) {
@ -920,6 +922,8 @@ public class Router implements RouterClock.ClockShiftListener {
changeState(State.EXPL_TUNNELS_READY);
else if (_state == State.NETDB_READY)
changeState(State.RUNNING);
else
_log.warn("Invalid state " + _state + " for setExplTunnelsReady()");
}
}

View File

@ -446,6 +446,7 @@ public class PersistentDataStore extends TransientDataStore {
// after we have already built expl. tunnels.
// This is enough to let i2ptunnel get started.
// Do not set _initialized yet so we don't start rescanning.
_setNetDbReady = true;
_context.router().setNetDbReady();
}
}