Don't recycle buffer more than once

This commit is contained in:
Neil Twigg
2023-03-17 09:25:17 +00:00
parent 5c437a233a
commit 4647e14b3e

View File

@@ -4001,9 +4001,6 @@ func (mb *msgBlock) flushPendingMsgsLocked() (*LostStreamData, error) {
dst = make([]byte, lob)
}
mb.bek.XORKeyStream(dst, buf)
if cap(buf) <= defaultLargeBlockSize {
recycleMsgBlockBuf(buf)
}
buf = dst
}