session/grpchijack: fix unlock
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>docker-19.03
parent
eebb08f4f6
commit
15242f30fc
|
@ -111,6 +111,7 @@ func (c *conn) Close() (err error) {
|
|||
err = c.stream.RecvMsg(m)
|
||||
if err != nil {
|
||||
if err != io.EOF {
|
||||
c.readMu.Unlock()
|
||||
return
|
||||
}
|
||||
err = nil
|
||||
|
|
Loading…
Reference in New Issue