Remove hopeless flush

The TriggerPump just below this is *already* going to trigger a flush,
so the extra flush call here can't do anything useful (and in
particular, it won't clear up the queue *immediately*, which is what
this code looks like it was aimed at doing).
pull/1795/head
Jason Rhinelander 3 years ago
parent fbc5cb0a6d
commit 70553c7627

@ -1092,10 +1092,6 @@ namespace llarp
void
Endpoint::QueueRecvData(RecvDataEvent ev)
{
if (m_RecvQueue.full() or m_RecvQueue.empty())
{
m_router->loop()->call_soon([this] { FlushRecvData(); });
}
m_RecvQueue.tryPushBack(std::move(ev));
Router()->TriggerPump();
}

Loading…
Cancel
Save