Skip to content

Commit

Permalink
Show spinner on every retry
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed May 4, 2024
1 parent 6bbb9c9 commit d70876e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions WordPress/Classes/Services/PostCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,11 @@ class PostCoordinator: NSObject {
}

private func startSync(for post: AbstractPost) {
guard let revision = post.getLatestRevisionNeedingSync() else {
let worker = getWorker(for: post)
if let worker = workers[post.objectID], worker.error != nil {
worker.error = nil
postDidUpdateNotification(for: post)
}
guard let revision = post.getLatestRevisionNeedingSync() else {
return DDLogInfo("sync: \(post.objectID.shortDescription) is already up to date")
}
startSync(for: post, revision: revision)
Expand Down

0 comments on commit d70876e

Please sign in to comment.