fix: call checkAndApplyUpdate after config refresh to ensure fresh data
This commit is contained in:
+1
-1
@@ -734,9 +734,9 @@ end
|
|||||||
local function backgroundSyncTask()
|
local function backgroundSyncTask()
|
||||||
pcall(refreshConfigOnce)
|
pcall(refreshConfigOnce)
|
||||||
while true do
|
while true do
|
||||||
pcall(checkAndApplyUpdate)
|
|
||||||
sleep(UPDATE_CHECK_INTERVAL)
|
sleep(UPDATE_CHECK_INTERVAL)
|
||||||
pcall(refreshConfigOnce)
|
pcall(refreshConfigOnce)
|
||||||
|
pcall(checkAndApplyUpdate)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user