Ver código fonte

Added name for background task started for image cache cleanup.

Sorin Antohi 2 anos atrás
pai
commit
960b5b8dde
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Sources/Cache/ImageCache.swift

+ 1 - 1
Sources/Cache/ImageCache.swift

@@ -731,7 +731,7 @@ open class ImageCache {
         }
         
         var backgroundTask: UIBackgroundTaskIdentifier!
-        backgroundTask = sharedApplication.beginBackgroundTask {
+        backgroundTask = sharedApplication.beginBackgroundTask(withName: "Kingfisher:backgroundCleanExpiredDiskCache") {
             endBackgroundTask(&backgroundTask!)
         }