File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1678,7 +1678,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
1678
1678
return true ;
1679
1679
}
1680
1680
1681
- void static Discover ()
1681
+ void static Discover (boost::thread_group& threadGroup )
1682
1682
{
1683
1683
if (!fDiscover )
1684
1684
return ;
@@ -1731,7 +1731,7 @@ void static Discover()
1731
1731
1732
1732
// Don't use external IPv4 discovery, when -onlynet="IPv6"
1733
1733
if (!IsLimited (NET_IPV4))
1734
- boost::thread (boost::bind (&TraceThread<void (*)()>, " ext-ip" , &ThreadGetMyExternalIP));
1734
+ threadGroup. create_thread (boost::bind (&TraceThread<void (*)()>, " ext-ip" , &ThreadGetMyExternalIP));
1735
1735
}
1736
1736
1737
1737
void StartNode (boost::thread_group& threadGroup)
@@ -1745,7 +1745,7 @@ void StartNode(boost::thread_group& threadGroup)
1745
1745
if (pnodeLocalHost == NULL )
1746
1746
pnodeLocalHost = new CNode (INVALID_SOCKET, CAddress (CService (" 127.0.0.1" , 0 ), nLocalServices));
1747
1747
1748
- Discover ();
1748
+ Discover (threadGroup );
1749
1749
1750
1750
//
1751
1751
// Start threads
You can’t perform that action at this time.
0 commit comments