Make sure a scheduled refresh can't stack on top on one happening right for CloudKit only.

This commit is contained in:
Maurice Parker 2020-04-05 15:23:11 -05:00
parent 390173dcb4
commit bada18a412
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ final class CloudKitAccountDelegate: AccountDelegate {
}
func refreshAll(for account: Account, completion: @escaping (Result<Void, Error>) -> Void) {
guard refreshProgress.isComplete else {
completion(.success(()))
return
}
refreshAll(for: account, downloadFeeds: true, completion: completion)
}