mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	put bytes back when done
This commit is contained in:
		
							parent
							
								
									df0090e32a
								
							
						
					
					
						commit
						5dfc71e1ee
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -495,6 +495,7 @@ func (sinfo *sessionInfo) sendWorker() {
 | 
			
		|||
			// TODO
 | 
			
		||||
			var packet []byte
 | 
			
		||||
			sessionFunc := func() {
 | 
			
		||||
				defer util.PutBytes(bs)
 | 
			
		||||
				sinfo.bytesSent += uint64(len(bs))
 | 
			
		||||
				payload, nonce := crypto.BoxSeal(&sinfo.sharedSesKey, bs, &sinfo.myNonce)
 | 
			
		||||
				defer util.PutBytes(payload)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue