Author: toad
Date: 2008-08-29 22:44:51 +0000 (Fri, 29 Aug 2008)
New Revision: 22226

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
Don't process block in onSuccess() if already started decode.


Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-08-29 22:11:55 UTC (rev 22225)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-08-29 22:44:51 UTC (rev 22226)
@@ -211,6 +211,12 @@
                                        Logger.minor(this, "onSuccess() when 
already finished for "+this);
                                return;
                        }
+                       if(startedDecode) {
+                               // Much the same.
+                               if(logMINOR)
+                                       Logger.minor(this, "onSuccess() when 
started decode for "+this);
+                               return;
+                       }
                        if(blockNo < dataKeys.length) {
                                if(dataKeys[blockNo] == null) {
                                        if(!startedDecode) Logger.error(this, 
"Block already finished: "+blockNo);


Reply via email to