aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-12-31 02:05:19 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-01-12 23:05:09 -0500
commitf5c36d19b636f01cc24417bc2b2f5b226ff3dd2c (patch)
treec3b0cb11b71a23bd4440b0bafc2c657ec9b3565f /src
parent60befa3997b98d3f913010f2621bec734f643526 (diff)
net: record bytes written before notifying the message processor
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 776047171f..312a6e0940 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -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)
{