Author: toad
Date: 2006-11-28 21:26:32 +0000 (Tue, 28 Nov 2006)
New Revision: 11096
Modified:
trunk/freenet/src/freenet/client/async/USKFetcher.java
Log:
Probably fix the USK insertion bug.
Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKFetcher.java 2006-11-28
20:29:17 UTC (rev 11095)
+++ trunk/freenet/src/freenet/client/async/USKFetcher.java 2006-11-28
21:26:32 UTC (rev 11096)
@@ -346,6 +346,11 @@
lastEd = uskManager.lookup(origUSK);
if((lastEd <= a.number) && !a.cancelled)
a.schedule();
+ else {
+ synchronized(this) {
+ runningAttempts.remove(a);
+ }
+ }
}
}
}
@@ -441,6 +446,11 @@
long lastEd = uskManager.lookup(origUSK);
if(attempts[i].number > lastEd)
attempts[i].schedule();
+ else {
+ synchronized(this) {
+
runningAttempts.remove(attempts[i]);
+ }
+ }
}
}
}