mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-10-23 12:07:53 +00:00
import updater effeciency
This commit is contained in:
@@ -147,9 +147,10 @@ func (v *Updater) Run() {
|
||||
if v.shouldTerminate() {
|
||||
return
|
||||
}
|
||||
interval := v.Interval()
|
||||
for v.shouldContinue() {
|
||||
v.updateFunc()
|
||||
time.Sleep(v.Interval())
|
||||
time.Sleep(interval)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user