r27154 - trunk/freenet/src/freenet/client/async
[email protected] Tue, 21 Apr 2009 14:58:13 +0000
| Newsgroups | gmane.network.freenet.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: toad
Date: 2009-04-21 14:58:12 +0000 (Tue, 21 Apr 2009)
New Revision: 27154
Modified:
trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
Log:
Fix metaStrings getting deleted, thanks TheSeeker
Modified: trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleFileFetcher.java 2009-04-21 14:16:55 UTC (rev 27153)
+++ trunk/freenet/src/freenet/client/async/SingleFileFetcher.java 2009-04-21 14:58:12 UTC (rev 27154)
@@ -836,7 +836,7 @@
}
private void continueWithNewMetadata(Metadata newMetadata, GetCompletionCallback callback, ObjectContainer container, ClientContext context) throws FetchException {
- final SingleFileFetcher f = new SingleFileFetcher(this, persistent, false, newMetadata, metaStrings, callback, ctx, container, context);
+ final SingleFileFetcher f = new SingleFileFetcher(this, persistent, false, newMetadata, new ArrayList<String>(metaStrings), callback, ctx, container, context);
// Clear our own metadata so it can be garbage collected, it will be replaced by whatever is fetched.
// The new fetcher has our metadata so we don't need to removeMetadata().
metadata = null;