delete unconfirmed LeaseSet and DeliveryStatus

This commit is contained in:
orignal 2020-03-14 16:35:34 -04:00
parent 45145fa50a
commit b5bc05ac2b
4 changed files with 21 additions and 9 deletions

View file

@ -571,6 +571,12 @@ namespace garlic
}
m_NumReceiveTags += numTags;
}
bool ECIESX25519AEADRatchetSession::CheckExpired (uint64_t ts)
{
CleanupUnconfirmedLeaseSet (ts);
return ts > m_LastActivityTimestamp + ECIESX25519_EXPIRATION_TIMEOUT;
}
}
}