mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
remove tti check
This commit is contained in:
parent
882746380e
commit
5b70c33c77
@ -329,13 +329,8 @@ func (this *Connection) updateTask() {
|
|||||||
current := this.Elapsed()
|
current := this.Elapsed()
|
||||||
this.kcpAccess.Lock()
|
this.kcpAccess.Lock()
|
||||||
this.kcp.Update(current)
|
this.kcp.Update(current)
|
||||||
interval := this.kcp.Check(this.Elapsed())
|
|
||||||
this.kcpAccess.Unlock()
|
this.kcpAccess.Unlock()
|
||||||
sleep := interval - current
|
time.Sleep(time.Duration(effectiveConfig.Tti) * time.Millisecond)
|
||||||
if sleep < 10 {
|
|
||||||
sleep = 10
|
|
||||||
}
|
|
||||||
time.Sleep(time.Duration(sleep) * time.Millisecond)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user