Skip to content

Commit c04e4ef

Browse files
committed
Update SDWebImagePrefetecher.m
I added "+ self.skippedCount" because it never completes if there are skipped operations.
1 parent 2ad8d81 commit c04e4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDWebImage/SDWebImagePrefetcher.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ - (void)startPrefetchingAtIndex:(NSUInteger)index {
8282
if (self.prefetchURLs.count > self.requestedCount) {
8383
[self startPrefetchingAtIndex:self.requestedCount];
8484
}
85-
else if (self.finishedCount == self.requestedCount) {
85+
else if (self.finishedCount + self.skippedCount == self.requestedCount) {
8686
[self reportStatus];
8787
if (self.completionBlock) {
8888
self.completionBlock(self.finishedCount, self.skippedCount);

0 commit comments

Comments
 (0)