mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 14:47:12 +00:00
Don't report error for EOF
This commit is contained in:
1 parent
3138960443
commit
608f72f537
1 file changed
+1
-1
+1
-1
@@ -28,7 +28,7 @@ func (reader CryptionReader) Read(blocks []byte) (int, error) {
|
|||||||
if nBytes > 0 {
|
if nBytes > 0 {
|
||||||
reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
|
reader.stream.XORKeyStream(blocks[:nBytes], blocks[:nBytes])
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil && err != io.EOF {
|
||||||
log.Error("Error reading blocks: %v", err)
|
log.Error("Error reading blocks: %v", err)
|
||||||
}
|
}
|
||||||
return nBytes, err
|
return nBytes, err
|
||||||
|
|||||||
Reference in new issue
Block a user