mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-10 17:02:54 +01:00
Add main thread assertion in notification handler.
This commit is contained in:
parent
33be5c0f7a
commit
a3f6bfe621
@ -163,6 +163,8 @@ public protocol FaviconDownloaderDelegate {
|
|||||||
|
|
||||||
@objc func didLoadFavicon(_ note: Notification) {
|
@objc func didLoadFavicon(_ note: Notification) {
|
||||||
|
|
||||||
|
assert(Thread.isMainThread)
|
||||||
|
|
||||||
guard let singleFaviconDownloader = note.object as? SingleFaviconDownloader else {
|
guard let singleFaviconDownloader = note.object as? SingleFaviconDownloader else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user