aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-02-06 14:05:45 -0500
committerCory Fields <cory-nospam-@coryfields.com>2017-02-06 14:48:50 -0500
commit9a0b784deaab6b9fffcab227d928987b981d0572 (patch)
tree798813108d73e10d0bf9ee61be34efd4657d11a5 /src/net.h
parent45e2e085612463dd9cca9f1b221733afa6d52991 (diff)
net: add a lock around hSocket
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 38f8d82ceb..e5a19e0f43 100644
--- a/src/net.h
+++ b/src/net.h
@@ -572,6 +572,7 @@ public:
uint64_t nSendBytes;
std::deque<std::vector<unsigned char>> vSendMsg;
CCriticalSection cs_vSend;
+ CCriticalSection cs_hSocket;
CCriticalSection cs_vProcessMsg;
std::list<CNetMessage> vProcessMsg;