mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix chan writer
This commit is contained in:
parent
c884d04c7b
commit
87a8f7a953
@ -31,6 +31,7 @@ func (this *ChainWriter) Write(payload []byte) (int, error) {
|
||||
if size > alloc.BufferSize {
|
||||
buffer.Append(payload[:alloc.BufferSize])
|
||||
size -= alloc.BufferSize
|
||||
payload = payload[alloc.BufferSize:]
|
||||
} else {
|
||||
buffer.Append(payload)
|
||||
size = 0
|
||||
|
Loading…
Reference in New Issue
Block a user