소스 검색

remove tti check

v2ray 9 년 전
부모
커밋
5b70c33c77
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      transport/internet/kcp/connection.go

+ 1 - 6
transport/internet/kcp/connection.go

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