Authored by Olivier Poitrey

Merge pull request #694 from shifu/master

Port Max's crash fix to my 3.6 fork
@@ -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];