Make Transport callbacks run on the main thread, which is consistent with NetNewsWire’s general pattern for these types of callbacks. This helps avoid situations where we touch model objects (which are main-thread-only) on a background thread.
This commit is contained in:
parent
113fe79301
commit
a5bf148d82
|
@ -816,9 +816,7 @@ private extension FeedbinAccountDelegate {
|
||||||
for feed in account.flattenedFeeds() {
|
for feed in account.flattenedFeeds() {
|
||||||
for (key, value) in iconDict {
|
for (key, value) in iconDict {
|
||||||
if feed.homePageURL?.contains(key) ?? false {
|
if feed.homePageURL?.contains(key) ?? false {
|
||||||
DispatchQueue.main.sync {
|
feed.faviconURL = value
|
||||||
feed.faviconURL = value
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue