From 5eb7d4ec57311e819bfbdd398d3e16e36cdd71d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 8 Nov 2010 10:10:20 +0100 Subject: [PATCH] Clear message names after timeout. --- .../java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.7.4