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 0b48ba54f8
commit 2d545c87cd

View File

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