mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-26 22:09:07 -04:00
cleanup
This commit is contained in:
@@ -54,8 +54,7 @@ func copyInternal(timer signal.ActivityTimer, reader Reader, writer Writer) erro
|
||||
continue
|
||||
}
|
||||
|
||||
err = writer.Write(buffer)
|
||||
if err != nil {
|
||||
if err := writer.Write(buffer); err != nil {
|
||||
buffer.Release()
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user