X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnet.h;h=ec4f77eb8328b3f2bae2cd3bd225cf668e2a7848;hp=8d223aded5a386ce5d401dac6f9535b1f72ca892;hb=a1b58519a99876a87225984de2c2c45f9445ca18;hpb=5728179502d83e1a390378967794f26272541360 diff --git a/src/net.h b/src/net.h index 8d223ad..ec4f77e 100644 --- a/src/net.h +++ b/src/net.h @@ -403,8 +403,10 @@ public: return; } - if (nHeaderStart < 0) + if (nHeaderStart < 0) { + LEAVE_CRITICAL_SECTION(cs_vSend); return; + } // Set the size uint32_t nSize = (uint32_t) vSend.size() - nMessageStart;