From: David ‘Bombe’ Roden Date: Mon, 8 Nov 2010 09:10:20 +0000 (+0100) Subject: Clear message names after timeout. X-Git-Tag: 0.2-RC2~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5eb7d4ec57311e819bfbdd398d3e16e36cdd71d9;p=Sone.git Clear message names after timeout. --- 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 0425e47..becb178 100644 --- a/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java +++ b/src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java @@ -320,6 +320,10 @@ public class WebOfTrustConnector implements ConnectorListener { reply.wait(60000 - (System.currentTimeMillis() - now)); } if (reply.getFields() == null) { + for (String targetMessage : targetMessages) { + replies.remove(targetMessage); + } + replies.remove("Error"); throw new PluginException("Timeout waiting for " + targetMessages[0] + "!"); } } catch (InterruptedException ie1) {