[freenet-cvs] r11973 - trunk/freenet/src/freenet/client/async

toad at freenetproject.org toad at freenetproject.org
Tue Mar 6 01:34:18 UTC 2007


Author: toad
Date: 2007-03-05 20:10:59 +0000 (Mon, 05 Mar 2007)
New Revision: 11973

Modified:
   trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
Log:
Comment

Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java	2007-03-05 20:06:46 UTC (rev 11972)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java	2007-03-05 20:10:59 UTC (rev 11973)
@@ -145,6 +145,9 @@
 	public void onSuccess(ClientKeyBlock block, boolean fromStore, int token) {
 		Bucket data = extract(block, token);
 		if(fromStore) {
+			// Normally when this method is called the block number has already
+			// been removed. However if fromStore=true, it won't have been, so
+			// we have to do it. (Check the call trace for why)
 			synchronized(this) {
 				for(int i=0;i<blockNums.size();i++) {
 					Integer x = (Integer) blockNums.get(i);




More information about the cvs mailing list