Add main thread assertion in notification handler.

This commit is contained in:
Brent Simmons 2024-04-16 22:36:29 -07:00
parent 33be5c0f7a
commit a3f6bfe621
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ public protocol FaviconDownloaderDelegate {
@objc func didLoadFavicon(_ note: Notification) {
assert(Thread.isMainThread)
guard let singleFaviconDownloader = note.object as? SingleFaviconDownloader else {
return
}