fix: 当初始化失败时,定时更新失效

This commit is contained in:
Skyxim 2022-06-04 19:15:30 +08:00
parent 3827e00b54
commit 8ff7e180a4

View file

@ -75,7 +75,7 @@ func (pp *proxySetProvider) Initial() error {
pp.onUpdate(elm) pp.onUpdate(elm)
if pp.healthCheck.auto() { if pp.healthCheck.auto() {
go pp.healthCheck.process() defer func() { go pp.healthCheck.process() }()
} }
return nil return nil