mirror of
https://github.com/i2p/i2p.i2p.git
synced 2024-12-06 19:27:00 +01:00
deal with null routers (useful for testing)
This commit is contained in:
@@ -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