forked from I2P_Developers/i2p.i2p
NetDB: Wake up FloodfillMonitor when ff setting changes,
so it will take effect immediately, and log in event log. Don't queue multiple FloodJobs after changes
This commit is contained in:
@ -109,9 +109,8 @@ public class ConfigAdvancedHandler extends FormHandler {
|
||||
FloodfillNetworkDatabaseFacade fndf = (FloodfillNetworkDatabaseFacade) _context.netDb();
|
||||
boolean wasFF = fndf.floodfillEnabled();
|
||||
boolean isFF = _ff.equals("true");
|
||||
// this will rebuild the RI, log in the event log, etc.
|
||||
fndf.setFloodfillEnabled(isFF);
|
||||
if (wasFF != isFF)
|
||||
_context.router().rebuildRouterInfo();
|
||||
}
|
||||
if (saved)
|
||||
addFormNotice(_t("Configuration saved successfully"));
|
||||
|
Reference in New Issue
Block a user