only do single ack packets

pull/1535/head
Jeff Becker 3 years ago
parent 4992629f20
commit 74f707ee01
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -779,7 +779,9 @@ namespace llarp
const llarp_buffer_t buf(msg.m_Data);
m_Parent->HandleMessage(this, buf);
if (m_ReplayFilter.emplace(rxid, m_Parent->Now()).second)
m_SendMACKs.emplace(rxid);
{
EncryptAndSend(msg.ACKS());
}
m_RXMsgs.erase(rxid);
}
}
@ -831,7 +833,9 @@ namespace llarp
const llarp_buffer_t buf(msg.m_Data);
m_Parent->HandleMessage(this, buf);
if (m_ReplayFilter.emplace(itr->first, m_Parent->Now()).second)
m_SendMACKs.emplace(itr->first);
{
EncryptAndSend(msg.ACKS());
}
}
else
{

Loading…
Cancel
Save