From 88e9fefa59b3f7f77ab3ddcab1b039f81534c83e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 25 Jun 2023 14:31:21 -0400 Subject: [PATCH] Retry LibraryUpdateJob later if Wi-Fi condition not met --- .../java/eu/kanade/tachiyomi/data/library/LibraryUpdateJob.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 54e000d5f..bd7a39f46 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 @@ -111,7 +111,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet val preferences = Injekt.get() val restrictions = preferences.libraryUpdateDeviceRestriction().get() if ((DEVICE_ONLY_ON_WIFI in restrictions) && !context.isConnectedToWifi()) { - return Result.failure() + return Result.retry() } // Find a running manual worker. If exists, try again later