1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

fix error handling in buf.Copy

This commit is contained in:
Darien Raymond 2018-02-19 17:50:53 +01:00
parent f1231822f7
commit b3e46f5d07
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -92,7 +92,9 @@ func copyInternal(reader Reader, writer Writer, handler *copyHandler) error {
buffer.Release() buffer.Release()
return werr return werr
} }
} else if err != nil { }
if err != nil {
return err return err
} }
} }