From 772929b5c61b2f27ff2fe8b92fe8fc9837ea1789 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 16 May 2020 09:57:27 -0400 Subject: [PATCH] Return job failure if library update actually doesn't start --- .../eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt index 2f4230edf..9e9731030 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt @@ -17,8 +17,11 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet Worker(context, workerParams) { override fun doWork(): Result { - LibraryUpdateService.start(context) - return Result.success() + return if (LibraryUpdateService.start(context)) { + Result.success() + } else { + Result.failure() + } } companion object {