mirror of https://github.com/oxen-io/lokinet
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:
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…
Reference in New Issue