Add stop method that deregisters the plugin listener.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 23 Sep 2011 19:03:46 +0000 (21:03 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 23 Sep 2011 19:03:46 +0000 (21:03 +0200)
src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

index 59da039..de30a5d 100644 (file)
@@ -70,6 +70,13 @@ public class WebOfTrustConnector implements ConnectorListener {
        //
 
        /**
+        * Stops the web of trust connector.
+        */
+       public void stop() {
+               pluginConnector.removeConnectorListener(WOT_PLUGIN_NAME, PLUGIN_CONNECTION_IDENTIFIER, this);
+       }
+
+       /**
         * Loads all own identities from the Web of Trust plugin.
         *
         * @return All own identity