Skip to content

Commit f5c36d1

Browse files
committed
net: record bytes written before notifying the message processor
1 parent 60befa3 commit f5c36d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,9 +1238,9 @@ void CConnman::ThreadSocketHandler()
12381238
bool notify = false;
12391239
if (!pnode->ReceiveMsgBytes(pchBuf, nBytes, notify))
12401240
pnode->CloseSocketDisconnect();
1241+
RecordBytesRecv(nBytes);
12411242
if(notify)
12421243
condMsgProc.notify_one();
1243-
RecordBytesRecv(nBytes);
12441244
}
12451245
else if (nBytes == 0)
12461246
{

0 commit comments

Comments
 (0)