[AltStore] Fixes potential endless loading of remote images

This commit is contained in:
Riley Testut
2019-08-27 16:00:59 -07:00
parent 7d48b831ed
commit d45f052f16
4 changed files with 4 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ private extension AppContentViewController
dataSource.prefetchHandler = { (imageURL, indexPath, completionHandler) in
return RSTAsyncBlockOperation() { (operation) in
ImagePipeline.shared.loadImage(with: imageURL as URL, progress: nil, completion: { (response, error) in
guard !operation.isCancelled else { return }
guard !operation.isCancelled else { return operation.finish() }
if let image = response?.image
{