mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	check if LeaseSet was submitted recently. Fixed typo
This commit is contained in:
		
							parent
							
								
									835c480269
								
							
						
					
					
						commit
						85be76b01a
					
				
					 4 changed files with 13 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -80,7 +80,7 @@ namespace garlic
 | 
			
		|||
 | 
			
		||||
	void GarlicRoutingSession::CleanupUnconfirmedLeaseSet (uint64_t ts)
 | 
			
		||||
	{
 | 
			
		||||
		if (m_LeaseSetUpdateMsgID && ts*1000LL > m_LeaseSetSubmissionTime + LEASET_CONFIRMATION_TIMEOUT)
 | 
			
		||||
		if (m_LeaseSetUpdateMsgID && ts*1000LL > m_LeaseSetSubmissionTime + LEASESET_CONFIRMATION_TIMEOUT)
 | 
			
		||||
		{
 | 
			
		||||
			if (GetOwner ())
 | 
			
		||||
				GetOwner ()->RemoveDeliveryStatusSession (m_LeaseSetUpdateMsgID);
 | 
			
		||||
| 
						 | 
				
			
			@ -232,7 +232,7 @@ namespace garlic
 | 
			
		|||
		if (GetOwner ())
 | 
			
		||||
		{
 | 
			
		||||
			// resubmit non-confirmed LeaseSet
 | 
			
		||||
			if (GetLeaseSetUpdateStatus () == eLeaseSetSubmitted && ts > GetLeaseSetSubmissionTime () + LEASET_CONFIRMATION_TIMEOUT)
 | 
			
		||||
			if (GetLeaseSetUpdateStatus () == eLeaseSetSubmitted && ts > GetLeaseSetSubmissionTime () + LEASESET_CONFIRMATION_TIMEOUT)
 | 
			
		||||
			{
 | 
			
		||||
				SetLeaseSetUpdateStatus (eLeaseSetUpdated);
 | 
			
		||||
				SetSharedRoutingPath (nullptr); // invalidate path since leaseset was not confirmed
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue