mirror of https://github.com/v2ray/v2ray-core
release buffer in error case
parent
da8efb4afe
commit
8d09d74224
|
@ -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…
Reference in New Issue