mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-09 08:23:42 +01:00
Add main thread assertion in notification handler.
This commit is contained in:
parent
a3f6bfe621
commit
167e8c1430
@ -52,6 +52,9 @@ public extension Notification.Name {
|
||||
}
|
||||
|
||||
@objc func imageDidBecomeAvailable(_ note: Notification) {
|
||||
|
||||
assert(Thread.isMainThread)
|
||||
|
||||
guard let avatarURL = note.userInfo?[ImageDownloader.imageURLKey] as? String else {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user