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

Skip to content
Snippets Groups Projects
Commit 54a16097 authored by zzz's avatar zzz
Browse files

Wizard: Signal bwlimiter after config change

Remove debug log in form handler
parent 0369d321
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,6 @@ public class WizardHandler extends FormHandler { ...@@ -28,10 +28,6 @@ public class WizardHandler extends FormHandler {
@Override @Override
protected void processForm() { protected void processForm() {
{
String page = getJettyString("page");
System.out.println("Action: " + _action + " page: " + page);
}
if (_action == null) if (_action == null)
return; return;
if (getJettyString("cancelbw") != null) { if (getJettyString("cancelbw") != null) {
...@@ -55,7 +51,9 @@ System.out.println("Action: " + _action + " page: " + page); ...@@ -55,7 +51,9 @@ System.out.println("Action: " + _action + " page: " + page);
boolean updated = updateRates(changes); boolean updated = updateRates(changes);
if (updated) { if (updated) {
boolean saved = _context.router().saveConfig(changes, null); boolean saved = _context.router().saveConfig(changes, null);
if (saved) // needed? // this has to be after the save
_context.bandwidthLimiter().reinitialize();
if (saved)
addFormNotice(_t("Configuration saved successfully")); addFormNotice(_t("Configuration saved successfully"));
else else
addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs")); addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment