rpc: fix read mutex unlock in dataconn stream

closes #413
This commit is contained in:
Mathias Fredriksson 2021-01-23 22:22:25 +02:00 committed by Christian Schwarz
parent 967263dffa
commit 1a131428a7

View File

@ -144,6 +144,7 @@ func (c *Conn) ReadStream(frameType uint32, closeConnOnClose bool) (_ *StreamRea
c.readMtx.Lock()
if !c.readClean {
c.readMtx.Unlock()
return nil, errWriteStreamToErrorUnknownState
}