From a1b58519a99876a87225984de2c2c45f9445ca18 Mon Sep 17 00:00:00 2001 From: svost Date: Sun, 26 Dec 2021 23:49:13 +0300 Subject: [PATCH] Fix - add missed cs macros --- src/net.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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; -- 1.7.1