diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2016-12-31 02:05:19 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2017-01-12 23:05:09 -0500 |
commit | f5c36d19b636f01cc24417bc2b2f5b226ff3dd2c (patch) | |
tree | c3b0cb11b71a23bd4440b0bafc2c657ec9b3565f /src/net.cpp | |
parent | 60befa3997b98d3f913010f2621bec734f643526 (diff) |
net: record bytes written before notifying the message processor
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 2 |
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) { |