Add web interface as core listener.
[Sone.git] / src / main / java / net / pterodactylus / sone / main / SonePlugin.java
index ed676a0..3ca3add 100644 (file)
@@ -169,12 +169,13 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10
                identityManager = new IdentityManager(webOfTrustConnector);
                identityManager.setContext("Sone");
 
-               /* create the web interface. */
-               webInterface = new WebInterface(this);
-
                /* create core. */
                core = new Core(configuration, freenetInterface, identityManager);
 
+               /* create the web interface. */
+               webInterface = new WebInterface(this);
+               core.addCoreListener(webInterface);
+
                /* create the identity manager. */
                identityManager.addIdentityListener(core);