Fix - add missed cs macros
authorsvost <svost@users.noreply.github.com>
Sun, 26 Dec 2021 20:49:13 +0000 (23:49 +0300)
committerGitHub <noreply@github.com>
Sun, 26 Dec 2021 20:49:13 +0000 (23:49 +0300)
src/net.h

index 8d223ad..ec4f77e 100644 (file)
--- 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;