mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
net: make vRecvMsg a list so that we can use splice()
This commit is contained in:
parent
53ad9a133a
commit
e5bcd9c84f
3 changed files with 3 additions and 3 deletions
|
|
@ -1859,7 +1859,7 @@ void CConnman::ThreadMessageHandler()
|
|||
|
||||
if (pnode->nSendSize < GetSendBufferSize())
|
||||
{
|
||||
if (!pnode->vRecvGetData.empty() || (!pnode->vRecvMsg.empty() && pnode->vRecvMsg[0].complete()))
|
||||
if (!pnode->vRecvGetData.empty() || (!pnode->vRecvMsg.empty() && pnode->vRecvMsg.front().complete()))
|
||||
{
|
||||
fSleep = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue