Stop processing when we don't return status records.

This commit is contained in:
Maurice Parker 2021-07-09 11:56:05 -05:00
parent f446a7e2ea
commit 33ecf4ec5b
1 changed files with 2 additions and 2 deletions

View File

@ -131,10 +131,10 @@ private extension CloudKitSendStatusOperation {
// If this happens, we have somehow gotten into a state where we have new status records
// but the articles didn't come back in the fetch. We need to clean up those sync records
// and continue processing.
// and stop processing.
if statusUpdates.isEmpty {
self.database.deleteSelectedForProcessing(articleIDs) { _ in
done(false)
done(true)
return
}
} else {