fix chan writer

pull/314/head
Darien Raymond 8 years ago
parent c884d04c7b
commit 87a8f7a953
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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…
Cancel
Save