mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-24 16:10:41 +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) {
|
@objc func imageDidBecomeAvailable(_ note: Notification) {
|
||||||
|
|
||||||
|
assert(Thread.isMainThread)
|
||||||
|
|
||||||
guard let avatarURL = note.userInfo?[ImageDownloader.imageURLKey] as? String else {
|
guard let avatarURL = note.userInfo?[ImageDownloader.imageURLKey] as? String else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user