mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	fix another drain on the bytestore
This commit is contained in:
		
							parent
							
								
									00e9c3dbd9
								
							
						
					
					
						commit
						cbbb61b019
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -463,6 +463,7 @@ func (sinfo *sessionInfo) recvWorker() {
 | 
				
			||||||
		ch := make(chan func(), 1)
 | 
							ch := make(chan func(), 1)
 | 
				
			||||||
		poolFunc := func() {
 | 
							poolFunc := func() {
 | 
				
			||||||
			bs, isOK = crypto.BoxOpen(&k, p.Payload, &p.Nonce)
 | 
								bs, isOK = crypto.BoxOpen(&k, p.Payload, &p.Nonce)
 | 
				
			||||||
 | 
								util.PutBytes(p.Payload)
 | 
				
			||||||
			callback := func() {
 | 
								callback := func() {
 | 
				
			||||||
				if !isOK {
 | 
									if !isOK {
 | 
				
			||||||
					util.PutBytes(bs)
 | 
										util.PutBytes(bs)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue