From 8923ba674a8b4769f53313b625acd2a6e175457b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mads=20B=C3=B8geskov?= Date: Thu, 19 Dec 2024 09:46:00 +0100 Subject: [PATCH] Update ImageDownloader.swift --- Sources/Networking/ImageDownloader.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Networking/ImageDownloader.swift b/Sources/Networking/ImageDownloader.swift index 6e55fe984..ef1c28994 100644 --- a/Sources/Networking/ImageDownloader.swift +++ b/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 /// 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 } } }