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:
Brent Simmons 2019-07-07 13:42:24 -07:00
parent 113fe79301
commit a5bf148d82
1 changed files with 1 additions and 3 deletions

View File

@ -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
} }
} }