mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Cancel local account network activity when told to shutdown by the OS. Issue #1232
This commit is contained in:
@@ -32,7 +32,7 @@ final class LocalAccountDelegate: AccountDelegate {
|
||||
}
|
||||
|
||||
func cancelAll(for account: Account) {
|
||||
// TODO: implement me
|
||||
refresher.cancelAll()
|
||||
}
|
||||
|
||||
func refreshAll(for account: Account, completion: @escaping (Result<Void, Error>) -> Void) {
|
||||
|
||||
@@ -28,6 +28,11 @@ final class LocalAccountRefresher {
|
||||
self.completion = completion
|
||||
downloadSession.downloadObjects(feeds as NSSet)
|
||||
}
|
||||
|
||||
public func cancelAll() {
|
||||
downloadSession.cancelAll()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - DownloadSessionDelegate
|
||||
|
||||
Submodule submodules/RSWeb updated: 262a220230...b2ef3e1113
Reference in New Issue
Block a user