From 608f72f53789c66bb7492b068240c69eed307cab Mon Sep 17 00:00:00 2001 From: V2Ray Date: Mon, 14 Sep 2015 22:01:01 +0200 Subject: [PATCH] Don't report error for EOF --- io/encryption.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/encryption.go b/io/encryption.go index 07999c52..9ddab977 100644 --- a/io/encryption.go +++ b/io/encryption.go @@ -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