Darien Raymond %!s(int64=9) %!d(string=hai) anos
pai
achega
40249dfacb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      transport/internet/kcp/sending.go

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

@@ -88,7 +88,7 @@ func (v *SendingWindow) Clear(una uint32) {
 }
 
 func (v *SendingWindow) Remove(idx uint32) bool {
-	if v.len == 0 {
+	if v.IsEmpty() {
 		return false
 	}