Skip to content

Commit

Permalink
Start next prefetch in next main
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Dec 3, 2017
1 parent 78c36b1 commit 10ec0f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/ImagePrefetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ public class ImagePrefetcher {
self.handleComplete()
}
} else {
self.reportCompletionOrStartNext()
DispatchQueue.main.async {
self.reportCompletionOrStartNext()
}
}
}

Expand Down

0 comments on commit 10ec0f2

Please sign in to comment.