diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt index 4ab7949749..624de7e662 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateService.kt @@ -357,18 +357,14 @@ class LibraryUpdateService( Timber.e(exception) stopSelf(startId) } + if (target == Target.CHAPTERS) { + listener?.onUpdateManga(LibraryManga()) + } job = GlobalScope.launch(handler) { when (target) { - Target.CHAPTERS -> { - listener?.onUpdateManga(LibraryManga()) - updateChaptersJob(mangaToAdd) - } - Target.DETAILS -> { - updateDetails(mangaToAdd) - } - else -> { - updateTrackings(mangaToAdd) - } + Target.CHAPTERS ->updateChaptersJob(mangaToAdd) + Target.DETAILS -> updateDetails(mangaToAdd) + else -> updateTrackings(mangaToAdd) } }