Call completion when there is nothing to download.

This commit is contained in:
Brent Simmons committed 2026-08-31 07:00:14 -07:00
1 parent 3036d87915
commit 3ffd90ff2b
1 file changed
+6
@@ -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)
}