mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-17 23:06:30 -05:00
release buffer in error case
This commit is contained in:
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
Block a user