fixed the dumbest crash in the world

(cherry picked from commit 6ebfbf4246191bd85775f9c14a55f741ca3db9f4)
This commit is contained in:
az4521 2025-02-02 02:20:07 +00:00 committed by Cuong-Tran
parent db3fa582ce
commit 16b889500b
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -196,12 +196,12 @@ class MigrationListScreenModel(
if (localManga != null) {
val source = sourceManager.get(localManga.source) as? CatalogueSource
if (source != null) {
val chapters = if (source is EHentai) {
source.getChapterList(localManga.toSManga(), throttleManager::throttle)
} else {
source.getChapterList(localManga.toSManga())
}
try {
val chapters = if (source is EHentai) {
source.getChapterList(localManga.toSManga(), throttleManager::throttle)
} else {
source.getChapterList(localManga.toSManga())
}
syncChaptersWithSource.await(chapters, localManga, source)
} catch (_: Exception) {
}