From 57450e506fa916cefd893c84aab526b5a200af7e Mon Sep 17 00:00:00 2001 From: Kleissner Date: Mon, 25 Oct 2021 04:05:53 +0200 Subject: [PATCH] UDT: Fix another critical new bug in getRcvSpeeds. CC #43 --- udt/udtsocket_recv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udt/udtsocket_recv.go b/udt/udtsocket_recv.go index ef9f455..a721dd1 100644 --- a/udt/udtsocket_recv.go +++ b/udt/udtsocket_recv.go @@ -453,7 +453,7 @@ func (s *udtSocketRecv) getRcvSpeeds() (recvSpeed, bandwidth int) { } // get median value, but cannot change the original value order in the window - if s.recvPktPairHistory == nil { + if s.recvPktPairHistory != nil { ourProbeHistory := make(sortableDurnArray, len(s.recvPktPairHistory)) copy(ourProbeHistory, s.recvPktPairHistory) n := len(ourProbeHistory)