Author: toad
Date: 2009-01-22 23:46:40 +0000 (Thu, 22 Jan 2009)
New Revision: 25228

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
If the last block is the correct size, include it in the decode (we were, and 
then we were deleting it, resulting in decode failing!)


Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2009-01-22 23:39:51 UTC (rev 25227)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2009-01-22 23:46:40 UTC (rev 25228)
@@ -403,7 +403,7 @@
                        if(lastBlock != null) {
                                if(persistent)
                                        container.activate(lastBlock, 1);
-                               if(ignoreLastDataBlock) {
+                               if(ignoreLastDataBlock && lastBlock.size() < 
CHKBlock.DATA_LENGTH) {
                                        lastBlock.free();
                                        if(persistent)
                                                lastBlock.removeFrom(container);

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to