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 @@ -1690,7 +1690,7 @@ bool BindListenPort(const CService &addrBind, string& strError)
1690
1690
return true ;
1691
1691
}
1692
1692
1693
- void static Discover ()
1693
+ void static Discover (boost::thread_group& threadGroup )
1694
1694
{
1695
1695
if (!fDiscover )
1696
1696
return ;
@@ -1743,7 +1743,7 @@ void static Discover()
1743
1743
1744
1744
// Don't use external IPv4 discovery, when -onlynet="IPv6"
1745
1745
if (!IsLimited (NET_IPV4))
1746
- boost::thread (boost::bind (&TraceThread<void (*)()>, " ext-ip" , &ThreadGetMyExternalIP));
1746
+ threadGroup. create_thread (boost::bind (&TraceThread<void (*)()>, " ext-ip" , &ThreadGetMyExternalIP));
1747
1747
}
1748
1748
1749
1749
void StartNode (boost::thread_group& threadGroup)
@@ -1757,7 +1757,7 @@ void StartNode(boost::thread_group& threadGroup)
1757
1757
if (pnodeLocalHost == NULL )
1758
1758
pnodeLocalHost = new CNode (INVALID_SOCKET, CAddress (CService (" 127.0.0.1" , 0 ), nLocalServices));
1759
1759
1760
- Discover ();
1760
+ Discover (threadGroup );
1761
1761
1762
1762
//
1763
1763
// Start threads
You can’t perform that action at this time.
0 commit comments