Skip to content

Commit

Permalink
Call finish in the correct place (#2702)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunn authored Apr 25, 2024
1 parent 876e220 commit 54eee31
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ final class DataBrokerOperationsCollection: Operation {
try await Task.sleep(nanoseconds: UInt64(sleepInterval) * 1_000_000_000)
}

finish()

} catch {
os_log("Error: %{public}@", log: .dataBrokerProtection, error.localizedDescription)
self.error = error
Expand All @@ -203,6 +201,8 @@ final class DataBrokerOperationsCollection: Operation {
withDataBrokerName: brokerProfileQueriesData.first?.dataBroker.name)
}
}

finish()
}

private func finish() {
Expand Down

0 comments on commit 54eee31

Please sign in to comment.