Fix bug in SDWebImagePrefetcher where startPrefetchingAtIndex would never be called due to is always being 0

This commit is contained in:
Alex Barlow 2012-11-20 12:00:45 +00:00 committed by Olivier Poitrey
parent 1ec36c7c99
commit 44c6224763
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
// Starts prefetching from the very first image on the list with the max allowed concurrency // Starts prefetching from the very first image on the list with the max allowed concurrency
NSUInteger listCount = self.prefetchURLs.count; NSUInteger listCount = self.prefetchURLs.count;
for (NSUInteger i = 0; i < self.maxConcurrentDownloads && self.requestedCount < listCount; i++) for (NSUInteger i = 0; i < self.manager.imageDownloader.maxConcurrentDownloads && self.requestedCount < listCount; i++)
{ {
[self startPrefetchingAtIndex:i]; [self startPrefetchingAtIndex:i];
} }