r27263 - trunk/freenet/src/freenet/client/async
[email protected] Thu, 23 Apr 2009 16:56:50 +0000
| Newsgroups | gmane.network.freenet.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: toad
Date: 2009-04-23 16:56:49 +0000 (Thu, 23 Apr 2009)
New Revision: 27263
Modified:
trunk/freenet/src/freenet/client/async/USKFetcher.java
Log:
Always decode unless data == null, because we have always progressed in onFoundEdition()
Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKFetcher.java 2009-04-23 16:50:06 UTC (rev 27262)
+++ trunk/freenet/src/freenet/client/async/USKFetcher.java 2009-04-23 16:56:49 UTC (rev 27263)
@@ -670,13 +670,11 @@
public void onFoundEdition(long ed, USK key, ObjectContainer container, final ClientContext context, boolean metadata, short codec, byte[] data, boolean newKnownGood, boolean newSlotToo) {
if(newKnownGood && !newSlotToo) return; // Only interested in slots
- final long lastEd = uskManager.lookupLatestSlot(origUSK);
boolean decode = false;
Vector<USKAttempt> killAttempts;
synchronized(this) {
if(completed || cancelled) return;
- decode = lastEd >= ed && data != null;
- ed = Math.max(lastEd, ed);
+ decode = data != null;
if(logMINOR) Logger.minor(this, "Latest: "+ed);
long addTo = ed + minFailures;
long addFrom = Math.max(lastAddedEdition + 1, ed + 1);