Make sure a scheduled refresh can't stack on top on one happening right for CloudKit only.
This commit is contained in:
parent
390173dcb4
commit
bada18a412
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue