Cancel local account network activity when told to shutdown by the OS. Issue #1232

This commit is contained in:
Maurice Parker 2019-11-04 20:41:08 -06:00
parent f6e48bddbe
commit 098f5050eb
3 changed files with 7 additions and 2 deletions

View File

@ -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) {

View File

@ -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