diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2019-10-18 12:03:13 -0700 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2019-10-23 09:27:32 +0200 |
commit | f342a5e61a73e1edf389b662d265d20cf26a1d51 (patch) | |
tree | 360b936d99f52fe569f12664c68517279001d060 /src/net.cpp | |
parent | 6a91499496d76c2b3e84489e9723b60514fb08db (diff) |
Make resetting implicit in TransportDeserializer::Read()
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net.cpp b/src/net.cpp index 8b9ef1d0aa..be4427f793 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -572,10 +572,7 @@ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete while (nBytes > 0) { // absorb network data int handled = m_deserializer->Read(pch, nBytes); - if (handled < 0) { - m_deserializer->Reset(); - return false; - } + if (handled < 0) return false; pch += handled; nBytes -= handled; |