Darien Raymond hace 9 años
padre
commit
40249dfacb
Se han modificado 1 ficheros con 1 adiciones y 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
 	}