mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
fix data race in kcp connection
This commit is contained in:
parent
5ae8bfbda1
commit
2a04819582
@ -256,7 +256,7 @@ func (v *ReceivingWorker) Write(seg Segment) error {
|
||||
ackSeg.Conv = v.conn.conv
|
||||
ackSeg.ReceivingNext = v.nextNumber
|
||||
ackSeg.ReceivingWindow = v.nextNumber + v.windowSize
|
||||
if v.conn.state == StateReadyToClose {
|
||||
if v.conn.State() == StateReadyToClose {
|
||||
ackSeg.Option = SegmentOptionClose
|
||||
}
|
||||
return v.conn.output.Write(ackSeg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user