Skip to content

Commit

Permalink
make sure error'ed urls are retried
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Feb 22, 2024
1 parent 34b2d18 commit 280eb49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KukaiCoreSwift/Services/MediaProxyService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public class MediaProxyService: NSObject {
imageView.sd_imageIndicator = (isDarkMode) ? SDWebImageActivityIndicator.white : SDWebImageActivityIndicator.gray

// Set the image, but avoid auto setting it, so we can run some checks first, e.g. check if the animated image is too massive
imageView.sd_setImage(with: url, placeholderImage: nil, options: [.avoidAutoSetImage], context: context) { _, _, _ in
imageView.sd_setImage(with: url, placeholderImage: nil, options: [.avoidAutoSetImage, .retryFailed], context: context) { _, _, _ in

} completed: { image, error, _, _ in
if let _ = error {
Expand Down

0 comments on commit 280eb49

Please sign in to comment.