Fix one instance of not accessing recvBuf via the getter

pull/148/head
Andy Wang 3 years ago
parent 4bc80af9a1
commit 104117cafb
No known key found for this signature in database
GPG Key ID: 181B49F9F38F3374

@ -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…
Cancel
Save