projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clear message names after timeout.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
freenet
/
wot
/
WebOfTrustConnector.java
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
(file)
--- 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) {
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) {
throw new PluginException("Timeout waiting for " + targetMessages[0] + "!");
}
} catch (InterruptedException ie1) {