Fix one instance of not accessing recvBuf via the getter

This commit is contained in:
Andy Wang 2020-12-22 14:32:41 +00:00
parent 4bc80af9a1
commit 104117cafb
No known key found for this signature in database
GPG Key ID: 181B49F9F38F3374

View File

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