From 3ffd90ff2b3b7415509be9f33260d401e6cdbef7 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 31 Aug 2026 07:00:14 -0700 Subject: [PATCH] Call completion when there is nothing to download. --- Modules/RSWeb/Sources/RSWeb/DownloadSession.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift index 2aa4ff45e..49261cfd2 100755 --- a/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift +++ b/Modules/RSWeb/Sources/RSWeb/DownloadSession.swift @@ -124,6 +124,12 @@ struct HTTP4xxResponse { cleanUp4xxResponsesCache() let filteredURLs = Self.filteredURLs(urls) + + if filteredURLs.isEmpty { + delegate.downloadSessionDidComplete(self) + return + } + for url in filteredURLs { addDataTask(url) }