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) }