mirror of https://github.com/v2ray/v2ray-core
import updater effeciency
parent
d93ff628bc
commit
f87b0fcde7
|
@ -147,9 +147,10 @@ func (v *Updater) Run() {
|
||||||
if v.shouldTerminate() {
|
if v.shouldTerminate() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
interval := v.Interval()
|
||||||
for v.shouldContinue() {
|
for v.shouldContinue() {
|
||||||
v.updateFunc()
|
v.updateFunc()
|
||||||
time.Sleep(v.Interval())
|
time.Sleep(interval)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue