Skip to content

Commit

Permalink
Port Max's crash fix to my 3.6 fork
Browse files Browse the repository at this point in the history
  • Loading branch information
shifu committed Apr 16, 2014
1 parent db86161 commit 1f202ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SDWebImage/SDWebImagePrefetcher.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ - (void)startPrefetchingAtIndex:(NSUInteger)index {
}

if (self.prefetchURLs.count > self.requestedCount) {
[self startPrefetchingAtIndex:self.requestedCount];
dispatch_async(dispatch_get_main_queue(), ^{
[self startPrefetchingAtIndex:self.requestedCount];
});
}
else if (self.finishedCount + self.skippedCount == self.requestedCount) {
[self reportStatus];
Expand Down

0 comments on commit 1f202ed

Please sign in to comment.