mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-10 07:20:39 +03:00
fix another drain on the bytestore
This commit is contained in:
parent
00e9c3dbd9
commit
cbbb61b019
@ -463,6 +463,7 @@ func (sinfo *sessionInfo) recvWorker() {
|
||||
ch := make(chan func(), 1)
|
||||
poolFunc := func() {
|
||||
bs, isOK = crypto.BoxOpen(&k, p.Payload, &p.Nonce)
|
||||
util.PutBytes(p.Payload)
|
||||
callback := func() {
|
||||
if !isOK {
|
||||
util.PutBytes(bs)
|
||||
|
Loading…
Reference in New Issue
Block a user