mirror of https://github.com/cbeuw/Cloak
Fix one instance of not accessing recvBuf via the getter
This commit is contained in:
parent
4bc80af9a1
commit
104117cafb
|
|
@ -264,7 +264,7 @@ func (sesh *Session) closeSession(closeSwitchboard bool) error {
|
||||||
}
|
}
|
||||||
stream := streamI.(*Stream)
|
stream := streamI.(*Stream)
|
||||||
atomic.StoreUint32(&stream.closed, 1)
|
atomic.StoreUint32(&stream.closed, 1)
|
||||||
_ = stream.recvBuf.Close() // will not block
|
_ = stream.getRecvBuf().Close() // will not block
|
||||||
sesh.streams.Delete(key)
|
sesh.streams.Delete(key)
|
||||||
sesh.streamCountDecr()
|
sesh.streamCountDecr()
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue