mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-04-21 17:01:35 +00:00
fix build break
This commit is contained in:
@@ -149,11 +149,12 @@ func (u *Updater) Run() {
|
||||
if u.shouldTerminate() {
|
||||
return
|
||||
}
|
||||
interval := u.Interval()
|
||||
ticker := time.NewTicker(u.Interval())
|
||||
for u.shouldContinue() {
|
||||
u.updateFunc()
|
||||
time.Sleep(interval)
|
||||
<-ticker.C
|
||||
}
|
||||
ticker.Stop()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user