Fix: error placement of group.enter()
This commit is contained in:
parent
b9a576df4d
commit
ddf44630e0
@ -83,7 +83,6 @@ class RemoteConfigManager {
|
||||
|
||||
for config in configs {
|
||||
if config.updating {continue}
|
||||
group.enter()
|
||||
// 12hour check
|
||||
let timeLimitNoMantians = Date().timeIntervalSince(config.updateTime ?? Date(timeIntervalSince1970: 0)) < 60 * 60 * 12
|
||||
|
||||
@ -94,6 +93,7 @@ class RemoteConfigManager {
|
||||
Logger.log(msg: "[Auto Upgrade] Requesting \(config.name)")
|
||||
let isCurrentConfig = config.name == currentConfigName
|
||||
config.updating = true
|
||||
group.enter()
|
||||
RemoteConfigManager.updateConfig(config: config) {
|
||||
[weak config] error in
|
||||
guard let config = config else {return}
|
||||
|
Loading…
Reference in New Issue
Block a user