Interrupt all running requests on sto().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 27 Sep 2011 12:15:39 +0000 (14:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 27 Sep 2011 12:15:43 +0000 (14:15 +0200)
This should no longer prevent the node from shutting down successfully.

src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

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