aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-08-09 16:07:22 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-11-09 16:52:44 +0100
commit8ccf1bb0c31108762e47f28d9d592e8d4c788564 (patch)
treedf1f221b3c3e7d28b743b99b259eb964cde4dff7 /src/net.h
parent73db0635a38744b09058b590ac246af5499630c9 (diff)
Use unique_ptr for sem{Addnode,Outbound} (CSemaphore)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index edca1171ab..668e92c004 100644
--- a/src/net.h
+++ b/src/net.h
@@ -399,8 +399,8 @@ private:
/** Services this instance offers */
ServiceFlags nLocalServices;
- CSemaphore *semOutbound;
- CSemaphore *semAddnode;
+ std::unique_ptr<CSemaphore> semOutbound;
+ std::unique_ptr<CSemaphore> semAddnode;
int nMaxConnections;
int nMaxOutbound;
int nMaxAddnode;