Permalink
Browse files

Update SDWebImagePrefetecher.m

I added "+ self.skippedCount" because it never completes if there are skipped operations.
  • Loading branch information...
1 parent 2ad8d81 commit c04e4efbf128f34f3f0f98279beda1b3928136e0 @burakkilic burakkilic committed Feb 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 SDWebImage/SDWebImagePrefetcher.m
View
2 SDWebImage/SDWebImagePrefetcher.m
@@ -82,7 +82,7 @@ - (void)startPrefetchingAtIndex:(NSUInteger)index {
if (self.prefetchURLs.count > self.requestedCount) {
[self startPrefetchingAtIndex:self.requestedCount];
}
- else if (self.finishedCount == self.requestedCount) {
+ else if (self.finishedCount + self.skippedCount == self.requestedCount) {
[self reportStatus];
if (self.completionBlock) {
self.completionBlock(self.finishedCount, self.skippedCount);

0 comments on commit c04e4ef

Please sign in to comment.