cleanup and logging

This commit is contained in:
zzz committed 2019-06-05 18:00:39 +00:00
1 parent c01bf47c8a
commit 6d72aeed8c
2 files changed
+5

No files matched your search

@@ -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()");
}
}
@@ -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();
}
}