Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions StikJIT/Utilities/AppStoreIconFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,19 @@ class AppStoreIconFetcher {
return
}

iconFetchDispatchQueue.sync {
iconFetchDispatchQueue.async {
do {
let ans = try JITEnableContext.shared.getAppIcon(withBundleId: bundleID)
iconCache[bundleID] = ans
completion(ans)
DispatchQueue.main.async {
iconCache[bundleID] = ans
completion(ans)
}
} catch {
print("Failed to get icon: \(error)")
completion(nil)
DispatchQueue.main.async {
completion(nil)
}
}
}
}
}
}