mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-30 15:59:08 -04:00
correctly calculate len of sending window
This commit is contained in:
@@ -61,7 +61,7 @@ func (this *SendingWindow) Remove(idx uint32) {
|
||||
seg.Release()
|
||||
this.data[pos] = nil
|
||||
if pos == this.start {
|
||||
if this.len == 1 {
|
||||
if this.start == this.last {
|
||||
this.len = 0
|
||||
this.start = 0
|
||||
this.last = 0
|
||||
|
||||
Reference in New Issue
Block a user