Merge pull request #694 from shifu/master
Port Max's crash fix to my 3.6 fork
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -84,7 +84,9 @@ | @@ -84,7 +84,9 @@ | ||
84 | } | 84 | } |
85 | 85 | ||
86 | if (self.prefetchURLs.count > self.requestedCount) { | 86 | if (self.prefetchURLs.count > self.requestedCount) { |
87 | + dispatch_async(dispatch_get_main_queue(), ^{ | ||
87 | [self startPrefetchingAtIndex:self.requestedCount]; | 88 | [self startPrefetchingAtIndex:self.requestedCount]; |
89 | + }); | ||
88 | } | 90 | } |
89 | else if (self.finishedCount + self.skippedCount == self.requestedCount) { | 91 | else if (self.finishedCount + self.skippedCount == self.requestedCount) { |
90 | [self reportStatus]; | 92 | [self reportStatus]; |
-
Please register or login to post a comment