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 774201c209
commit b7b3d2b3ee

View File

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