Continuation of Fix #1366, addresses #1350 and reverts a part of #1221 - from co…
…mmit 6406d8e5, the wrong usage of dispatch_apply This one fixes: #1425 and #1426
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -80,7 +80,11 @@ | @@ -80,7 +80,11 @@ | ||
80 | totalCount:self.prefetchURLs.count | 80 | totalCount:self.prefetchURLs.count |
81 | ]; | 81 | ]; |
82 | } | 82 | } |
83 | - else if (self.finishedCount == self.requestedCount) { | 83 | + if (self.prefetchURLs.count > self.requestedCount) { |
84 | + dispatch_async(self.prefetcherQueue, ^{ | ||
85 | + [self startPrefetchingAtIndex:self.requestedCount]; | ||
86 | + }); | ||
87 | + } else if (self.finishedCount == self.requestedCount) { | ||
84 | [self reportStatus]; | 88 | [self reportStatus]; |
85 | if (self.completionBlock) { | 89 | if (self.completionBlock) { |
86 | self.completionBlock(self.finishedCount, self.skippedCount); | 90 | self.completionBlock(self.finishedCount, self.skippedCount); |
-
Please register or login to post a comment