Cancel local account network activity when told to shutdown by the OS. Issue #1232
This commit is contained in:
parent
f6e48bddbe
commit
098f5050eb
|
@ -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 @@
|
|||
Subproject commit 262a220230ef393edb7c003132b6cdc16a17cb5e
|
||||
Subproject commit b2ef3e111339ba9dd9070ed0ded8e053135559cb
|
Loading…
Reference in New Issue