Throw an exception when the timeout is hit.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Nov 2010 20:38:16 +0000 (21:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 2 Nov 2010 20:38:16 +0000 (21:38 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

index a8806c1..8dc8840 100644 (file)
@@ -316,6 +316,7 @@ public class WebOfTrustConnector implements ConnectorListener {
                        pluginConnector.sendRequest(WOT_PLUGIN_NAME, PLUGIN_CONNECTION_IDENTIFIER, fields, data);
                        try {
                                reply.wait(60000);
+                               throw new PluginException("Timeout waiting for " + targetMessages[0] + "!");
                        } catch (InterruptedException ie1) {
                                logger.log(Level.WARNING, "Got interrupted while waiting for reply on GetOwnIdentities.", ie1);
                        }