mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-16 09:14:09 -05:00
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:
@@ -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 = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user