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

toad at freenetproject.org toad at freenetproject.org
Mon Feb 4 14:32:22 UTC 2008


Author: toad
Date: 2008-02-04 14:32:22 +0000 (Mon, 04 Feb 2008)
New Revision: 17505

Modified:
   trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
Log:
D'oh - missed a class in the last lot of refactoring.
The result was that the onSuccess() on SingleFileFetcher wasn't called, instead the onSuccess on SimpleSingleFileFetcher was called, which doesn't know how to deal with metadata -> Invalid metadata: Metadata where expected data.

Modified: trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleFileFetcher.java	2008-02-04 14:24:52 UTC (rev 17504)
+++ trunk/freenet/src/freenet/client/async/SingleFileFetcher.java	2008-02-04 14:32:22 UTC (rev 17505)
@@ -119,7 +119,7 @@
 
 	// Process the completed data. May result in us going to a
 	// splitfile, or another SingleFileFetcher, etc.
-	public void onSuccess(ClientKeyBlock block, boolean fromStore, int token) {
+	public void onSuccess(ClientKeyBlock block, boolean fromStore, Object token) {
 		if(parent instanceof ClientGetter)
 			((ClientGetter)parent).addKeyToBinaryBlob(block);
 		parent.completedBlock(fromStore);




More information about the cvs mailing list