merge develop into master #21
@ -227,7 +227,7 @@ func (c *NewReno) receivedNack(nack uint32) {
|
||||
|
||||
for {
|
||||
s := c.windowSize
|
||||
if s > 1 && atomic.CompareAndSwapUint32(&c.windowSize, s, s/2) {
|
||||
if s == 1 || atomic.CompareAndSwapUint32(&c.windowSize, s, s/2) {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user