Update SDWebImagePrefetecher.m

I added "+ self.skippedCount" because it never completes if there are skipped operations.
This commit is contained in:
burakkilic 2014-02-14 11:56:09 +02:00
parent 2ad8d81768
commit c04e4efbf1
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@
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);