mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
drop expired leasesand renew leaseset
This commit is contained in:
parent
c754b5ae18
commit
e056c9c135
4 changed files with 33 additions and 19 deletions
|
@ -704,11 +704,11 @@ namespace stream
|
|||
|
||||
void Stream::UpdateCurrentRemoteLease (bool expired)
|
||||
{
|
||||
if (!m_RemoteLeaseSet)
|
||||
if (!m_RemoteLeaseSet || m_RemoteLeaseSet->IsExpired ())
|
||||
{
|
||||
m_RemoteLeaseSet = m_LocalDestination.GetOwner ()->FindLeaseSet (m_RemoteIdentity->GetIdentHash ());
|
||||
if (!m_RemoteLeaseSet)
|
||||
LogPrint (eLogError, "Streaming: LeaseSet ", m_RemoteIdentity->GetIdentHash ().ToBase64 (), " not found");
|
||||
if (!m_RemoteLeaseSet)
|
||||
LogPrint (eLogWarning, "Streaming: LeaseSet ", m_RemoteIdentity->GetIdentHash ().ToBase64 (), " not found");
|
||||
}
|
||||
if (m_RemoteLeaseSet)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue