fix build break

pull/1712/head
Darien Raymond 2017-12-14 23:43:28 +01:00
parent 2acef1cc07
commit 4fad49fef8
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 3 additions and 2 deletions

View File

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