net: make vRecvMsg a list so that we can use splice()

This commit is contained in:
Cory Fields
2016-12-31 02:05:07 -05:00
parent 53ad9a133a
commit e5bcd9c84f
3 changed files with 3 additions and 3 deletions

View File

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