if(list == null) return null;
for(Iterator<PersistentChosenBlock> i = list.iterator();i.hasNext();) {
PersistentChosenBlock block = i.next();
long l = fetching.checkRecentlyFailed(block.key, realTimeFlag);
if(l < now) continue; // Okay
<BUG>i.remove();
setMaxCooldownWakeup(l, ((SplitFileFetcherSegmentSendableRequestItem)block.token).blockNum, maxTries, container, context);
}</BUG>
return list;
}

if(list == null) return null;
for(Iterator<PersistentChosenBlock> i = list.iterator();i.hasNext();) {
PersistentChosenBlock block = i.next();
long l = fetching.checkRecentlyFailed(block.key, realTimeFlag);
if(l < now) continue; // Okay
i.remove();
if(maxRetries == -1 || (maxRetries >= RequestScheduler.COOLDOWN_RETRIES)) {
setMaxCooldownWakeup(l, ((SplitFileFetcherSegmentSendableRequestItem)block.token).blockNum, maxTries, container, context);
} else {
onNonFatalFailure(new FetchException(FetchException.RECENTLY_FAILED), ((SplitFileFetcherSegmentSendableRequestItem)(block.token)).blockNum, container, context);
}
}
return list;
}
