mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	delete tags of termiated session right away
This commit is contained in:
		
							parent
							
								
									c6cdb26f47
								
							
						
					
					
						commit
						43b587636b
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -880,8 +880,12 @@ namespace garlic
 | 
			
		|||
			{
 | 
			
		||||
				auto session = it->second.tagset->GetSession ();
 | 
			
		||||
				if (!session || session->IsTerminated())
 | 
			
		||||
					it->second.tagset->Expire ();
 | 
			
		||||
				++it;
 | 
			
		||||
				{	
 | 
			
		||||
					it = m_ECIESx25519Tags.erase (it);
 | 
			
		||||
					numExpiredTags++;
 | 
			
		||||
				}	
 | 
			
		||||
				else
 | 
			
		||||
					++it;
 | 
			
		||||
			}	
 | 
			
		||||
		}
 | 
			
		||||
		if (numExpiredTags > 0)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue