mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
net: record bytes written before notifying the message processor
This commit is contained in:
parent
60befa3997
commit
f5c36d19b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1238,9 +1238,9 @@ void CConnman::ThreadSocketHandler()
|
|||
bool notify = false;
|
||||
if (!pnode->ReceiveMsgBytes(pchBuf, nBytes, notify))
|
||||
pnode->CloseSocketDisconnect();
|
||||
RecordBytesRecv(nBytes);
|
||||
if(notify)
|
||||
condMsgProc.notify_one();
|
||||
RecordBytesRecv(nBytes);
|
||||
}
|
||||
else if (nBytes == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue