call delivery status hook on overload

pull/1594/head
Jeff Becker 3 years ago
parent 6bd53484da
commit 9c742b36eb
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -179,7 +179,11 @@ namespace llarp
ILinkSession::Message_t buf, ILinkSession::CompletionHandler completed)
{
if (m_TXMsgs.size() >= MaxSendQueueSize)
{
if(completed)
completed(ILinkSession::DeliveryStatus::eDeliveryDropped);
return false;
}
const auto now = m_Parent->Now();
const auto msgid = m_TXID++;
const auto bufsz = buf.size();

Loading…
Cancel
Save