Fix/initial auto backup never triggered in case server was not running (#762)

* Trigger initial auto backup in case server was not running

In case the server was not started (stopped, system shutdown - not in hibernation) during the scheduled auto backup time, the auto backup never got triggered.

* Update server util preferences
This commit is contained in:
schroda
2023-11-06 03:16:48 +01:00
committed by GitHub
parent 05bf4f5525
commit 7993da038e
3 changed files with 8 additions and 8 deletions

View File

@@ -51,9 +51,9 @@ class Updater : IUpdater {
private var maxSourcesInParallel = 20 // max permits, necessary to be set to be able to release up to 20 permits
private val semaphore = Semaphore(maxSourcesInParallel)
private val lastUpdateKey = "lastUpdateKey"
private val lastAutomatedUpdateKey = "lastAutomatedUpdateKey"
private val preferences = Injekt.get<Application>().getSharedPreferences("manga/impl/update", Context.MODE_PRIVATE)
private val lastUpdateKey = "lastGlobalUpdate"
private val lastAutomatedUpdateKey = "lastAutomatedGlobalUpdate"
private val preferences = Injekt.get<Application>().getSharedPreferences("server_util", Context.MODE_PRIVATE)
private var currentUpdateTaskId = ""