r27265 - trunk/freenet/src/freenet/client/async

[email protected] Thu, 23 Apr 2009 17:23:17 +0000
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-23 17:23:15 +0000 (Thu, 23 Apr 2009)
New Revision: 27265

Modified:
   trunk/freenet/src/freenet/client/async/USKFetcher.java
Log:
Only decode if lastEd == ed


Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKFetcher.java	2009-04-23 17:22:45 UTC (rev 27264)
+++ trunk/freenet/src/freenet/client/async/USKFetcher.java	2009-04-23 17:23:15 UTC (rev 27265)
@@ -676,7 +676,7 @@
 		Vector<USKAttempt> killAttempts;
 		synchronized(this) {
 			if(completed || cancelled) return;
-			decode = lastEd >= ed && data != null;
+			decode = lastEd == ed && data != null;
 			ed = Math.max(lastEd, ed);
 			if(logMINOR) Logger.minor(this, "Latest: "+ed);
 			long addTo = ed + minFailures;