Cancel all pending requests on stop().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 27 Sep 2011 12:22:04 +0000 (14:22 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 27 Sep 2011 12:22:04 +0000 (14:22 +0200)
src/main/java/net/pterodactylus/wotns/freenet/wot/WebOfTrustConnector.java

index 4274caf..c546591 100644 (file)
@@ -76,6 +76,9 @@ public class WebOfTrustConnector implements ConnectorListener {
         */
        public void stop() {
                pluginConnector.removeConnectorListener(WOT_PLUGIN_NAME, PLUGIN_CONNECTION_IDENTIFIER, this);
+               synchronized (reply) {
+                       reply.notifyAll();
+               }
        }
 
        /**