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:
parent
f1231822f7
commit
b3e46f5d07
@ -92,7 +92,9 @@ func copyInternal(reader Reader, writer Writer, handler *copyHandler) error {
|
||||
buffer.Release()
|
||||
return werr
|
||||
}
|
||||
} else if err != nil {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user