From 26c24524a07c96855b88340d9867c3efe6f964c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 2 Nov 2010 21:38:16 +0100 Subject: [PATCH] Throw an exception when the timeout is hit. --- .../java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java | 1 + 1 file changed, 1 insertion(+) 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 a8806c1..8dc8840 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -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); } -- 2.7.4