From: David ‘Bombe’ Roden Date: Tue, 2 Nov 2010 20:38:16 +0000 (+0100) Subject: Throw an exception when the timeout is hit. X-Git-Tag: 0.2-RC1~62 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=26c24524a07c96855b88340d9867c3efe6f964c4;p=Sone.git Throw an exception when the timeout is hit. --- 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); }