From: David ‘Bombe’ Roden Date: Mon, 25 Oct 2010 16:31:19 +0000 (+0200) Subject: Only read the value from the configuration after not resetting. X-Git-Tag: 0.1-RC1~27 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fe245324ae2d6c33854f481a68bbfaf82090376d;p=Sone.git Only read the value from the configuration after not resetting. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 49cbc8a..4fe969d 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -626,7 +626,7 @@ public class Core extends AbstractService { SoneInserter.setInsertionDelay(newValue); } - })).set(configuration.getIntValue("Option/InsertionDelay").getValue(null)); + })); options.addBooleanOption("ClearOnNextRestart", new DefaultOption(false)).set(configuration.getBooleanValue("Option/ClearOnNextRestart").getValue(null)); options.addBooleanOption("ReallyClearOnNextRestart", new DefaultOption(false)).set(configuration.getBooleanValue("Option/ReallyClearOnNextRestart").getValue(null)); @@ -639,6 +639,8 @@ public class Core extends AbstractService { return; } + options.getIntegerOption("InsertionDelay").set(configuration.getIntValue("Option/InsertionDelay").getValue(null)); + /* parse local Sones. */ logger.log(Level.INFO, "Loading Sones…"); int soneId = 0;