Skip to content

Commit af2a51d

Browse files
authored
Merge pull request onevcat#2337 from lunarway/master
🐛 Session Task crashed with force unwrap
2 parents e674991 + 8923ba6 commit af2a51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Networking/ImageDownloader.swift

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

0 commit comments

Comments
 (0)