forked from I2P_Developers/i2p.i2p
Wizard: Signal bwlimiter after config change
Remove debug log in form handler
This commit is contained in:
@ -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);
|
|||||||
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"));
|
||||||
|
Reference in New Issue
Block a user