X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fmain%2FSonePlugin.java;h=60812cdab1af339a44567928bdc0fac02d9e2037;hb=9227e9192e2a593a8c5acbe26e3bcd0af4530adf;hp=8af45c6c9befd68a7aef08a948ff9a4d011ae694;hpb=db5fa52470a5bbc5ec73d49469a8a775cefd944a;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java index 8af45c6..60812cd 100644 --- a/src/main/java/net/pterodactylus/sone/main/SonePlugin.java +++ b/src/main/java/net/pterodactylus/sone/main/SonePlugin.java @@ -62,6 +62,9 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 /** The core. */ private Core core; + /** The web interface. */ + private WebInterface webInterface; + /** The l10n helper. */ private PluginL10n l10n; @@ -125,7 +128,7 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 FreenetInterface freenetInterface = new FreenetInterface(pluginRespirator.getNode(), pluginRespirator.getHLSimpleClient()); /* create the web interface. */ - WebInterface webInterface = new WebInterface(this); + webInterface = new WebInterface(this); /* create core. */ core = new Core(); @@ -142,6 +145,9 @@ public class SonePlugin implements FredPlugin, FredPluginL10n, FredPluginBaseL10 */ @Override public void terminate() { + /* stop the web interface. */ + webInterface.stop(); + /* stop the core. */ core.stop();