session/grpchijack: fix unlock

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
docker-19.03
Akihiro Suda 2019-05-12 20:41:47 +09:00
parent eebb08f4f6
commit 15242f30fc
1 changed files with 1 additions and 0 deletions

View File

@ -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