mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
unconditional pump
This commit is contained in:
parent
27fac68716
commit
785f1366ed
1 changed files with 1 additions and 3 deletions
|
@ -255,9 +255,6 @@ namespace llarp
|
|||
{
|
||||
if(sendq.size() >= MaxSendQueueSize)
|
||||
return false;
|
||||
// preemptive pump
|
||||
if(sendq.size() >= MaxSendQueueSize / 8)
|
||||
PumpWrite();
|
||||
size_t sz = buf.sz;
|
||||
byte_t* ptr = buf.base;
|
||||
uint32_t msgid = m_NextTXMsgID++;
|
||||
|
@ -273,6 +270,7 @@ namespace llarp
|
|||
ptr += s;
|
||||
sz -= s;
|
||||
}
|
||||
PumpWrite();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue