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) {
|
||||
|
||||
assert(Thread.isMainThread)
|
||||
|
||||
guard let singleFaviconDownloader = note.object as? SingleFaviconDownloader else {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue