Browse Source

net: record bytes written before notifying the message processor

0.14
Cory Fields 8 years ago
parent
commit
f5c36d19b6
  1. 2
      src/net.cpp

2
src/net.cpp

@ -1238,9 +1238,9 @@ void CConnman::ThreadSocketHandler() @@ -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…
Cancel
Save