From 54a16097606593ebe36ba39d992fc8c7b5dfc0ae Mon Sep 17 00:00:00 2001 From: zzz Date: Thu, 15 Nov 2018 17:41:57 +0000 Subject: [PATCH] Wizard: Signal bwlimiter after config change Remove debug log in form handler --- .../src/net/i2p/router/web/helpers/WizardHandler.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/WizardHandler.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/WizardHandler.java index 646f84e5b..0c4ae8de8 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/WizardHandler.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/WizardHandler.java @@ -28,10 +28,6 @@ public class WizardHandler extends FormHandler { @Override protected void processForm() { -{ -String page = getJettyString("page"); -System.out.println("Action: " + _action + " page: " + page); -} if (_action == null) return; if (getJettyString("cancelbw") != null) { @@ -55,7 +51,9 @@ System.out.println("Action: " + _action + " page: " + page); boolean updated = updateRates(changes); if (updated) { 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")); else addFormError(_t("Error saving the configuration (applied but not saved) - please see the error logs"));