mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
fix total inflight size
This commit is contained in:
parent
8a879deac1
commit
bd4752a6ab
@ -142,6 +142,11 @@ func (sw *SendingWindow) Remove(number uint32) bool {
|
||||
if seg.Number > number {
|
||||
return false
|
||||
} else if seg.Number == number {
|
||||
if sw.totalInFlightSize > 0 {
|
||||
sw.totalInFlightSize--
|
||||
}
|
||||
seg.Release()
|
||||
sw.cache.Remove(e)
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user