remove tti check

pull/215/head
v2ray 2016-06-25 23:08:02 +02:00
parent 882746380e
commit 5b70c33c77
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 6 deletions

View File

@ -329,13 +329,8 @@ func (this *Connection) updateTask() {
current := this.Elapsed()
this.kcpAccess.Lock()
this.kcp.Update(current)
interval := this.kcp.Check(this.Elapsed())
this.kcpAccess.Unlock()
sleep := interval - current
if sleep < 10 {
sleep = 10
}
time.Sleep(time.Duration(sleep) * time.Millisecond)
time.Sleep(time.Duration(effectiveConfig.Tti) * time.Millisecond)
}
}