From: David ‘Bombe’ Roden Date: Fri, 23 Sep 2011 19:03:46 +0000 (+0200) Subject: Add stop method that deregisters the plugin listener. X-Git-Tag: 0.7^2~2^2~17 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=7440d64d6fa199edfb929be784ae4ab5f01d7c8c Add stop method that deregisters the plugin listener. --- diff --git a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java index 59da039..de30a5d 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -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