Fix: grpc connection panic

This commit is contained in:
Dreamacro 2021-03-18 23:19:00 +08:00
parent 573316bcde
commit 1355196b7c

View file

@ -81,6 +81,8 @@ func (g *Conn) Read(b []byte) (n int, err error) {
g.buf = nil g.buf = nil
} }
return return
} else if g.response == nil {
return 0, net.ErrClosed
} }
buf := make([]byte, 5) buf := make([]byte, 5)