release buffer in error case

pull/1581/head
Darien Raymond 6 years ago
parent da8efb4afe
commit 8d09d74224
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -117,6 +117,7 @@ func (c *connection) Write(b []byte) (int, error) {
func (c *connection) WriteMultiBuffer(mb buf.MultiBuffer) error {
if c.done.Done() {
buf.ReleaseMulti(mb)
return io.ErrClosedPipe
}

Loading…
Cancel
Save