Remove reset for processing as it was causing an infinite loop in some scenarios.

This commit is contained in:
Maurice Parker 2021-07-07 12:24:21 -05:00
parent e33d624dd8
commit 1b24140e1a
1 changed files with 4 additions and 6 deletions

View File

@ -74,14 +74,12 @@ private extension CloudKitSendStatusOperation {
case .success(let syncStatuses):
func stopProcessing() {
self.database.resetAllSelectedForProcessing { _ in
if self.showProgress {
self.refreshProgress?.completeTask()
}
os_log(.debug, log: self.log, "Done sending article statuses.")
self.operationDelegate?.operationDidComplete(self)
}
}
guard syncStatuses.count > 0 else {
stopProcessing()