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 d337834d1..27e135a7d 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 @@ -33,7 +33,6 @@ import eu.kanade.tachiyomi.util.storage.getUriCompat import eu.kanade.tachiyomi.util.system.acquireWakeLock import eu.kanade.tachiyomi.util.system.createFileInCacheDir import eu.kanade.tachiyomi.util.system.isServiceRunning -import kotlinx.coroutines.CancellationException import kotlinx.coroutines.CoroutineExceptionHandler import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers @@ -257,7 +256,7 @@ class LibraryUpdateService( mangaToUpdate .map { manga -> if (updateJob?.isActive != true) { - throw CancellationException() + return } // Notify manga that will update. @@ -360,7 +359,7 @@ class LibraryUpdateService( mangaToUpdate.forEach { manga -> if (updateJob?.isActive != true) { - throw CancellationException() + return } notifier.showProgressNotification(manga, progressCount++, mangaToUpdate.size) @@ -394,7 +393,7 @@ class LibraryUpdateService( mangaToUpdate.forEach { manga -> if (updateJob?.isActive != true) { - throw CancellationException() + return } // Notify manga that will update.