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…
x
Reference in New Issue
Block a user