Fix Vision read

This commit is contained in:
H1JK 2023-02-25 10:28:38 +08:00
parent c5444a03ac
commit 66f108bf24

View File

@ -62,7 +62,7 @@ type Conn struct {
func (vc *Conn) Read(b []byte) (int, error) { func (vc *Conn) Read(b []byte) (int, error) {
if vc.received { if vc.received {
if vc.readProcess { if vc.readProcess {
buffer := buf2.As(b) buffer := buf2.With(b)
err := vc.ReadBuffer(buffer) err := vc.ReadBuffer(buffer)
return buffer.Len(), err return buffer.Len(), err
} }