Преглед изворни кода

Stop indicator animation when failed

onevcat пре 10 година
родитељ
комит
ad861a5bc1
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      Kingfisher/UIImageView+Kingfisher.swift

+ 1 - 0
Kingfisher/UIImageView+Kingfisher.swift

@@ -209,6 +209,7 @@ public extension UIImageView {
                     sSelf.kf_setImageTask(nil)
                     
                     guard let image = image else {
+                        indicator?.stopAnimating()
                         completionHandler?(image: nil, error: error, cacheType: cacheType, imageURL: imageURL)
                         return
                     }