mirror of https://github.com/v2ray/v2ray-core
don't release buffer as it is written
parent
ce96941029
commit
09824b9b1a
|
@ -90,7 +90,6 @@ func copyInternal(reader Reader, writer Writer, handler *copyHandler) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if werr := handler.writeTo(writer, buffer); werr != nil {
|
if werr := handler.writeTo(writer, buffer); werr != nil {
|
||||||
buffer.Release()
|
|
||||||
return werr
|
return werr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue