1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-03 07:56:42 -05:00

import updater effeciency

This commit is contained in:
Darien Raymond 2017-02-26 15:01:43 +01:00
parent d93ff628bc
commit f87b0fcde7
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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)
} }
} }
} }