I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit f0ad921f authored by zzz's avatar zzz
Browse files

NetDB: Prevent rare deadlock via FloodfillMonitorJob at startup

parent 63f3d88f
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,13 @@ class FloodfillMonitorJob extends JobImpl {
public String getName() { return "Monitor the floodfill pool"; }
public synchronized void runJob() {
if (!getContext().commSystem().isRunning()) {
// Avoid deadlock in the transports through here via Router.rebuildRouterInfo() at startup
if (_log.shouldWarn())
_log.warn("Floodfill Monitor before comm system started");
requeue(100);
return;
}
boolean wasFF = _facade.floodfillEnabled();
boolean ff = shouldBeFloodfill();
_facade.setFloodfillEnabledFromMonitor(ff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment