aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2017-02-06 14:05:45 -0500
committerCory Fields <[email protected]>2017-02-06 14:48:50 -0500
commit9a0b784deaab6b9fffcab227d928987b981d0572 (patch)
tree798813108d73e10d0bf9ee61be34efd4657d11a5 /src/net.h
parentnet: rearrange so that socket accesses can be grouped together (diff)
downloaddiscoin-9a0b784deaab6b9fffcab227d928987b981d0572.tar.xz
discoin-9a0b784deaab6b9fffcab227d928987b981d0572.zip
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 38f8d82ce..e5a19e0f4 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;