1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 17:35:23 +00:00
This commit is contained in:
Darien Raymond 2017-04-03 01:07:01 +02:00
parent d792faff70
commit 891b8a03de
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -52,11 +52,11 @@ type bufferToBytesReader struct {
// fill fills in the internal buffer.
func (v *bufferToBytesReader) fill() {
b, err := v.stream.Read()
v.current = b
if err != nil {
v.err = err
v.current = nil
return
}
v.current = b
}
func (v *bufferToBytesReader) Read(b []byte) (int, error) {