From: David ‘Bombe’ Roden Date: Tue, 27 Sep 2011 12:15:39 +0000 (+0200) Subject: Interrupt all running requests on sto(). X-Git-Tag: 0.7.2^2~23 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=139547829978392d4f376a532c18cee2499b91bd;p=Sone.git Interrupt all running requests on sto(). This should no longer prevent the node from shutting down successfully. --- 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 de30a5d..019cdb2 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -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(); + } } /**