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).
This commit is contained in:
Jason Rhinelander 2021-11-15 10:29:38 -04:00
parent fbc5cb0a6d
commit 70553c7627
1 changed files with 0 additions and 4 deletions

View File

@ -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();
}