mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 17:32:28 +00:00
deal with null routers (useful for testing)
This commit is contained in:
1 parent
3e66ea3f56
commit
eb30525a26
1 file changed
+2
@@ -81,6 +81,8 @@ public class MessageHistory {
|
||||
public void initialize(boolean forceReinitialize) {
|
||||
if (!forceReinitialize) return;
|
||||
|
||||
if (_context.router() == null) return;
|
||||
|
||||
if (_context.router().getRouterInfo() == null) {
|
||||
_reinitializeJob.getTiming().setStartAfter(_context.clock().now()+5000);
|
||||
_context.jobQueue().addJob(_reinitializeJob);
|
||||
|
||||
Reference in new issue
Block a user