diff --git a/udt/congestion_native.go b/udt/congestion_native.go index 30703ba..754fd49 100644 --- a/udt/congestion_native.go +++ b/udt/congestion_native.go @@ -179,7 +179,7 @@ func (ncc NativeCongestionControl) OnNAK(parms CongestionControlParms, losslist } else { if ncc.decCount < 5 { ncc.nakCount++ - if ncc.nakCount%ncc.decRandom != 0 { + if ncc.decRandom != 0 && ncc.nakCount%ncc.decRandom != 0 { ncc.decCount++ return }