[freenet-cvs] r13138 - trunk/freenet/src/freenet/support
toad at freenetproject.org
toad at freenetproject.org
Thu May 3 22:03:21 UTC 2007
Author: toad
Date: 2007-05-03 22:03:21 +0000 (Thu, 03 May 2007)
New Revision: 13138
Modified:
trunk/freenet/src/freenet/support/RandomGrabArray.java
Log:
Comment
Modified: trunk/freenet/src/freenet/support/RandomGrabArray.java
===================================================================
--- trunk/freenet/src/freenet/support/RandomGrabArray.java 2007-05-03 22:02:35 UTC (rev 13137)
+++ trunk/freenet/src/freenet/support/RandomGrabArray.java 2007-05-03 22:03:21 UTC (rev 13138)
@@ -75,6 +75,7 @@
if(oret != null)
contents.remove(oret);
oret = reqs[i];
+ // May as well check whether that is cancelled too.
} while (index > i && (oret == null || oret.isCancelled()));
// Shrink array
if((index < reqs.length / 4) && (reqs.length > MIN_SIZE)) {
More information about the cvs
mailing list