mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-02 10:22:35 +00:00
🩹 Make sure refresh feeds runs on main
Resolves assertion error in `static func url(for feed: Feed) -> URL?`
This commit is contained in:
1 file changed
+5
-2
@@ -38,8 +38,10 @@ final class LocalAccountRefresher {
|
||||
|
||||
public func refreshFeeds(_ feeds: Set<Feed>) async {
|
||||
await withCheckedContinuation { continuation in
|
||||
refreshFeeds(feeds) {
|
||||
continuation.resume()
|
||||
Task { @MainActor in
|
||||
refreshFeeds(feeds) {
|
||||
continuation.resume()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -291,3 +293,4 @@ private extension Data {
|
||||
return self.isImage
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user