mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add main thread assertion in notification handler.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user