1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-01 19:45:24 +00:00

fix chan writer

This commit is contained in:
Darien Raymond 2016-11-19 21:12:52 +01:00
parent c884d04c7b
commit 87a8f7a953
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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