aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'net.h')
-rw-r--r--net.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net.h b/net.h
index a0b2929daa..5995ac3343 100644
--- a/net.h
+++ b/net.h
@@ -604,7 +604,7 @@ public:
void BeginMessage(const char* pszCommand)
{
- EnterCriticalSection(&cs_vSend);
+ cs_vSend.Enter();
if (nPushPos != -1)
AbortMessage();
nPushPos = vSend.size();
@@ -618,7 +618,7 @@ public:
return;
vSend.resize(nPushPos);
nPushPos = -1;
- LeaveCriticalSection(&cs_vSend);
+ cs_vSend.Leave();
printf("(aborted)\n");
}
@@ -643,7 +643,7 @@ public:
printf("\n");
nPushPos = -1;
- LeaveCriticalSection(&cs_vSend);
+ cs_vSend.Leave();
}
void EndMessageAbortIfEmpty()