From a3f6bfe621b14a4150f169e97dd91dbac8ec2fb3 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 16 Apr 2024 22:36:29 -0700 Subject: [PATCH] Add main thread assertion in notification handler. --- Images/Sources/Images/Favicons/FaviconDownloader.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Images/Sources/Images/Favicons/FaviconDownloader.swift b/Images/Sources/Images/Favicons/FaviconDownloader.swift index 542f88de3..dbc467342 100644 --- a/Images/Sources/Images/Favicons/FaviconDownloader.swift +++ b/Images/Sources/Images/Favicons/FaviconDownloader.swift @@ -163,6 +163,8 @@ public protocol FaviconDownloaderDelegate { @objc func didLoadFavicon(_ note: Notification) { + assert(Thread.isMainThread) + guard let singleFaviconDownloader = note.object as? SingleFaviconDownloader else { return }