net: record bytes written before notifying the message processor

This commit is contained in:
Cory Fields committed 2017-01-12 23:05:09 -05:00
1 parent 60befa3997
commit f5c36d19b6
1 file changed
+1 -1
+1 -1
View File
@@ -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)
{