From 6ec97eb4e006078af8a87a1f226d4088199c47a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 12 Dec 2010 14:58:49 +0100 Subject: [PATCH] Set firstStart and newConfig only after the web interface has started. --- src/main/java/net/pterodactylus/sone/main/SonePlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index a24802b..5a0e8ae 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -184,8 +184,6 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 /* create the web interface. */ webInterface = new WebInterface(this); - webInterface.setFirstStart(firstStart); - webInterface.setNewConfig(newConfig); core.addCoreListener(webInterface); /* create the identity manager. */ @@ -200,6 +198,8 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 core.setConfiguration(newConfiguration); } webInterface.start(); + webInterface.setFirstStart(firstStart); + webInterface.setNewConfig(newConfig); identityManager.start(); startupFailed = false; } finally { -- 2.7.4