mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
resubmit updated LeaseSet if not confirmed
This commit is contained in:
parent
c7c6e5917a
commit
9fb59e128b
1 changed files with 4 additions and 1 deletions
|
@ -685,7 +685,10 @@ namespace garlic
|
||||||
if (first) payloadLen += 7;// datatime
|
if (first) payloadLen += 7;// datatime
|
||||||
if (msg && m_Destination)
|
if (msg && m_Destination)
|
||||||
payloadLen += msg->GetPayloadLength () + 13 + 32;
|
payloadLen += msg->GetPayloadLength () + 13 + 32;
|
||||||
auto leaseSet = (GetLeaseSetUpdateStatus () == eLeaseSetUpdated) ? GetOwner ()->GetLeaseSet () : nullptr;
|
auto leaseSet = (GetLeaseSetUpdateStatus () == eLeaseSetUpdated ||
|
||||||
|
(GetLeaseSetUpdateStatus () == eLeaseSetSubmitted &&
|
||||||
|
ts > GetLeaseSetSubmissionTime () + LEASET_CONFIRMATION_TIMEOUT)) ?
|
||||||
|
GetOwner ()->GetLeaseSet () : nullptr;
|
||||||
if (leaseSet)
|
if (leaseSet)
|
||||||
{
|
{
|
||||||
payloadLen += leaseSet->GetBufferLen () + DATABASE_STORE_HEADER_SIZE + 13;
|
payloadLen += leaseSet->GetBufferLen () + DATABASE_STORE_HEADER_SIZE + 13;
|
||||||
|
|
Loading…
Add table
Reference in a new issue