Clear message names after timeout.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Nov 2010 09:10:20 +0000 (10:10 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Nov 2010 16:31:53 +0000 (17:31 +0100)
src/main/java/net/pterodactylus/sone/freenet/wot/WebOfTrustConnector.java

index 0425e47..becb178 100644 (file)
@@ -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) {