mirror of https://github.com/v2ray/v2ray-core
refactor
parent
d792faff70
commit
891b8a03de
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue