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