Author: toad
Date: 2008-02-18 22:11:24 +0000 (Mon, 18 Feb 2008)
New Revision: 18054
Modified:
trunk/freenet/src/freenet/node/FailureTableEntry.java
Log:
Synchronization to fix ArrayIndexOutOfBoundsException.
Modified: trunk/freenet/src/freenet/node/FailureTableEntry.java
===================================================================
--- trunk/freenet/src/freenet/node/FailureTableEntry.java 2008-02-18
22:04:13 UTC (rev 18053)
+++ trunk/freenet/src/freenet/node/FailureTableEntry.java 2008-02-18
22:11:24 UTC (rev 18054)
@@ -90,7 +90,7 @@
}
}
- public void failedTo(PeerNode routedTo, int timeout, long now, short
htl) {
+ public synchronized void failedTo(PeerNode routedTo, int timeout, long
now, short htl) {
if(logMINOR) {
Logger.minor(this, "Failed sending request to
"+routedTo.shortToString()+" : timeout "+timeout);
int idx = addRequestedFrom(routedTo, now);