v2ray пре 9 година
родитељ
комит
490f77b4a0
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      transport/internet/kcp/sending.go

+ 1 - 4
transport/internet/kcp/sending.go

@@ -108,10 +108,7 @@ func (this *SendingWindow) Flush() bool {
 	}
 
 	current := this.kcp.current
-	resent := uint32(this.kcp.fastresend)
-	if this.kcp.fastresend <= 0 {
-		resent = 0xffffffff
-	}
+	resent := this.kcp.fastresend
 	lost := false
 	segSent := false