Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Return job failure if library update actually doesn't start

Cette révision appartient à :
arkon 2020-05-16 09:57:27 -04:00
Parent c4ca3606ad
révision 772929b5c6

Voir le fichier

@ -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 {