Browse Source

import updater effeciency

pull/432/head
Darien Raymond 8 years ago
parent
commit
f87b0fcde7
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 3
      transport/internet/kcp/connection.go

3
transport/internet/kcp/connection.go

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

Loading…
Cancel
Save