mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-06-04 02:11:41 +00:00
use last activity timestamp for expiration check
This commit is contained in:
@@ -2733,9 +2733,9 @@ namespace transport
|
||||
{
|
||||
if (!msg) return;
|
||||
uint32_t msgID = msg->GetMsgID ();
|
||||
if (!msg->IsExpired ())
|
||||
// m_LastActivityTimestamp is updated in ProcessData before
|
||||
if (!msg->IsExpired (GetLastActivityTimestamp ()*1000LL)) // to milliseconds
|
||||
{
|
||||
// m_LastActivityTimestamp is updated in ProcessData before
|
||||
if (m_ReceivedI2NPMsgIDs.emplace (msgID, (uint32_t)GetLastActivityTimestamp ()).second)
|
||||
m_Handler.PutNextMessage (std::move (msg));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user