Browse Source

release buffer in error case

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

1
common/net/connection.go

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