mirror of
https://github.com/yattee/yattee.git
synced 2025-01-09 06:17:10 +00:00
Fix crash
This commit is contained in:
parent
f871c7aaf5
commit
8ffdd4d51f
@ -68,14 +68,13 @@ final class SubscribedChannelsModel: ObservableObject, CacheModel {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DispatchQueue.main.async { [weak self] in
|
||||||
|
guard let self else { return }
|
||||||
let request = force ? resource?.load() : resource?.loadIfNeeded()
|
let request = force ? resource?.load() : resource?.loadIfNeeded()
|
||||||
guard request != nil else { return }
|
guard request != nil else { return }
|
||||||
|
|
||||||
loadCachedChannels(account)
|
loadCachedChannels(account)
|
||||||
|
|
||||||
DispatchQueue.main.async { [weak self] in
|
|
||||||
guard let self else { return }
|
|
||||||
|
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
|
|
||||||
request?
|
request?
|
||||||
|
Loading…
Reference in New Issue
Block a user