mirror of
https://github.com/cbeuw/Cloak.git
synced 2024-11-15 18:13:29 +00:00
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)
|
||||
atomic.StoreUint32(&stream.closed, 1)
|
||||
_ = stream.recvBuf.Close() // will not block
|
||||
_ = stream.getRecvBuf().Close() // will not block
|
||||
sesh.streams.Delete(key)
|
||||
sesh.streamCountDecr()
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user