Author: toad
Date: 2008-12-17 20:39:03 +0000 (Wed, 17 Dec 2008)
New Revision: 24485

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java
Log:
Store blockFetchContext on the splitfilefetcher, so it can be deleted by it


Modified: branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java        
2008-12-17 20:36:39 UTC (rev 24484)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcher.java        
2008-12-17 20:39:03 UTC (rev 24485)
@@ -36,6 +36,7 @@
 public class SplitFileFetcher implements ClientGetState, HasKeyListener {
 
        final FetchContext fetchContext;
+       final FetchContext blockFetchContext;
        final ArchiveContext archiveContext;
        final List decompressors;
        final ClientMetadata clientMetadata;
@@ -261,7 +262,7 @@
                if(persistent)
                        container.store(this);
                
-               FetchContext blockFetchContext = new FetchContext(fetchContext, 
FetchContext.SPLITFILE_DEFAULT_BLOCK_MASK, true);
+               blockFetchContext = new FetchContext(fetchContext, 
FetchContext.SPLITFILE_DEFAULT_BLOCK_MASK, true);
                if(segmentCount == 1) {
                        // splitfile* will be overwritten, this is bad
                        // so copy them

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

Reply via email to