Skip to content

Commit

Permalink
Merge pull request #2337 from lunarway/master
Browse files Browse the repository at this point in the history
🐛 Session Task crashed with force unwrap
  • Loading branch information
onevcat authored Dec 19, 2024
2 parents e674991 + 8923ba6 commit af2a51d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Networking/ImageDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public final class DownloadTask: @unchecked Sendable {
/// When you call ``DownloadTask/cancel()``, this ``SessionDataTask`` and its cancellation token will be passed
/// along. You can use them to identify the cancelled task.
public private(set) var sessionTask: SessionDataTask? {
get { propertyQueue.sync { _sessionTask! } }
get { propertyQueue.sync { _sessionTask } }
set { propertyQueue.sync { _sessionTask = newValue } }
}

Expand Down

0 comments on commit af2a51d

Please sign in to comment.