Update of /cvsroot/freenet/freenet/src/freenet/node
In directory sc8-pr-cvs1:/tmp/cvs-serv15561/freenet/node
Modified Files:
FailureTable.java
Log Message:
Fix ConcurrentModificationException in new FailureTable, up version for this and the
NPE I just fixed
Index: FailureTable.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/node/FailureTable.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -w -r1.18 -r1.19
--- FailureTable.java 1 Nov 2003 22:35:34 -0000 1.18
+++ FailureTable.java 2 Nov 2003 02:16:17 -0000 1.19
@@ -107,7 +107,6 @@
* Add a failure.
* @param k The key that could not retrieved.
* @param hopsToLive The hopsToLive when it could not be found.
- * @param time The time at which it could not be retreived.
*/
public synchronized void failedToFind(Key k, int hopsToLive) {
long time = System.currentTimeMillis();
@@ -293,9 +292,9 @@
// TODO Auto-generated method stub
for(Iterator i = myItems.iterator();i.hasNext();) {
FailItem fi = (FailItem)(i.next());
- myItems.remove(fi);
items.remove(fi);
}
+ myItems = null;
entries.remove(this);
}
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs