Stop processing when we don't return status records.

This commit is contained in:
Maurice Parker committed 2021-07-09 11:57:50 -05:00
1 parent f446a7e2ea
commit 33ecf4ec5b
1 file changed
+2 -2
@@ -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 {