mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 17:29:23 +00:00
Cancel local account network activity when told to shutdown by the OS. Issue #1232
This commit is contained in:
1 parent
f6e48bddbe
commit
098f5050eb
3 files changed
+7
-2
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
Submodule submodules/RSWeb updated: 262a220230...b2ef3e1113.
Reference in new issue
Block a user