Browse Source

Merge branch 'master' of github.com:onevcat/Kingfisher

onevcat 1 year ago
parent
commit
f4befcec76
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Networking/ImageDownloader.swift

+ 1 - 1
Sources/Networking/ImageDownloader.swift

@@ -82,7 +82,7 @@ public final class DownloadTask: @unchecked Sendable {
     /// When you call ``DownloadTask/cancel()``, this ``SessionDataTask`` and its cancellation token will be passed
     /// When you call ``DownloadTask/cancel()``, this ``SessionDataTask`` and its cancellation token will be passed
     /// along. You can use them to identify the cancelled task.
     /// along. You can use them to identify the cancelled task.
     public private(set) var sessionTask: SessionDataTask? {
     public private(set) var sessionTask: SessionDataTask? {
-        get { propertyQueue.sync { _sessionTask! } }
+        get { propertyQueue.sync { _sessionTask } }
         set { propertyQueue.sync { _sessionTask = newValue } }
         set { propertyQueue.sync { _sessionTask = newValue } }
     }
     }