Don't report error for EOF

pull/182/head^2
V2Ray 2015-09-14 22:01:01 +02:00
parent 3138960443
commit 608f72f537
1 changed files with 1 additions and 1 deletions

View File

@ -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