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):
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)
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 {