Return job failure if library update actually doesn't start
(cherry picked from commit 772929b5c61b2f27ff2fe8b92fe8fc9837ea1789)
This commit is contained in:
parent
d0929c1dc5
commit
a087b0bf4b
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user