mirror of https://github.com/v2ray/v2ray-core
Don't report error for EOF
parent
3138960443
commit
608f72f537
|
@ -28,7 +28,7 @@ func (reader CryptionReader) Read(blocks []byte) (int, error) {
|
|||
if nBytes > 0 {
|
||||
reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
|
||||
}
|
||||
if err != nil {
|
||||
if err != nil && err != io.EOF {
|
||||
log.Error("Error reading blocks: %v", err)
|
||||
}
|
||||
return nBytes, err
|
||||
|
|
Loading…
Reference in New Issue