From 257b28141e742f8682527a5585feb650751fc86c Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 21 May 2020 23:02:53 -0400 Subject: [PATCH] Hopefully removing the tracepot log for library updates being cancelled --- .../tachiyomi/data/library/LibraryUpdateService.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 7630972fae..b27d788172 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 @@ -356,8 +356,13 @@ class LibraryUpdateService( jobCount.andIncrement val list = mangaToUpdateMap.keys.map { source -> async { - requestSemaphore.withPermit { - updateMangaInSource(source, downloadNew, categoriesToDownload) + try { + requestSemaphore.withPermit { + updateMangaInSource(source, downloadNew, categoriesToDownload) + } + } catch (e: Exception) { + Timber.e(e) + false } } }