mirror of https://github.com/v2ray/v2ray-core
fix build break
parent
2acef1cc07
commit
4fad49fef8
|
@ -149,11 +149,12 @@ func (u *Updater) Run() {
|
||||||
if u.shouldTerminate() {
|
if u.shouldTerminate() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
interval := u.Interval()
|
ticker := time.NewTicker(u.Interval())
|
||||||
for u.shouldContinue() {
|
for u.shouldContinue() {
|
||||||
u.updateFunc()
|
u.updateFunc()
|
||||||
time.Sleep(interval)
|
<-ticker.C
|
||||||
}
|
}
|
||||||
|
ticker.Stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue