aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net.cpp3
-rw-r--r--src/net.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 66e3d91f4a..853c0cdd65 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -84,8 +84,6 @@ std::string strSubVersion;
limitedmap<uint256, int64_t> mapAlreadyAskedFor(MAX_INV_SZ);
-static CSemaphore *semOutbound = NULL;
-
// Signals for message handling
static CNodeSignals g_signals;
CNodeSignals& GetNodeSignals() { return g_signals; }
@@ -2039,6 +2037,7 @@ CConnman::CConnman()
nLastNodeId = 0;
nSendBufferMaxSize = 0;
nReceiveFloodSize = 0;
+ semOutbound = NULL;
}
bool StartNode(CConnman& connman, boost::thread_group& threadGroup, CScheduler& scheduler, ServiceFlags nLocalServices, ServiceFlags nRelevantServices, std::string& strNodeError)
diff --git a/src/net.h b/src/net.h
index 25e473c5fc..36ebadf13c 100644
--- a/src/net.h
+++ b/src/net.h
@@ -282,6 +282,8 @@ private:
/** Services this instance cares about */
ServiceFlags nRelevantServices;
+
+ CSemaphore *semOutbound;
};
extern std::unique_ptr<CConnman> g_connman;
void MapPort(bool fUseUPnP);