mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Call downloadProgress.clear().
This commit is contained in:
@@ -67,7 +67,7 @@ public protocol DownloadSessionDelegate: AnyObject {
|
||||
|
||||
public func cancelAll() async {
|
||||
|
||||
clearDownloadProgress()
|
||||
downloadProgress.clear()
|
||||
|
||||
let (dataTasks, uploadTasks, downloadTasks) = await urlSession.tasks
|
||||
|
||||
@@ -254,7 +254,7 @@ private extension DownloadSession {
|
||||
if tasksInProgress.count + tasksPending.count + queue.count < 1 { // Finished?
|
||||
allIdentifiers = Set<String>()
|
||||
delegate?.downloadSessionDidComplete(self)
|
||||
clearDownloadProgress()
|
||||
downloadProgress.clear()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,11 +263,6 @@ private extension DownloadSession {
|
||||
downloadProgress.numberRemaining = tasksInProgress.count + tasksPending.count + queue.count
|
||||
}
|
||||
|
||||
func clearDownloadProgress() {
|
||||
|
||||
downloadProgress = DownloadProgress(numberOfTasks: 0)
|
||||
}
|
||||
|
||||
static let badRedirectStrings = ["solutionip", "lodgenet", "monzoon", "landingpage", "btopenzone", "register", "login", "authentic"]
|
||||
|
||||
func urlStringIsDisallowedRedirect(_ urlString: String) -> Bool {
|
||||
|
||||
Reference in New Issue
Block a user