boost: remove useless threadGroup parameter from Discover
This commit is contained in:
parent
f26866b9ca
commit
ba91724948
3 changed files with 3 additions and 7 deletions
|
@ -1667,7 +1667,7 @@ bool AppInitMain()
|
||||||
if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION))
|
if (gArgs.GetBoolArg("-listenonion", DEFAULT_LISTEN_ONION))
|
||||||
StartTorControl(threadGroup, scheduler);
|
StartTorControl(threadGroup, scheduler);
|
||||||
|
|
||||||
Discover(threadGroup);
|
Discover();
|
||||||
|
|
||||||
// Map ports with UPnP
|
// Map ports with UPnP
|
||||||
if (gArgs.GetBoolArg("-upnp", DEFAULT_UPNP)) {
|
if (gArgs.GetBoolArg("-upnp", DEFAULT_UPNP)) {
|
||||||
|
|
|
@ -2129,7 +2129,7 @@ bool CConnman::BindListenPort(const CService &addrBind, std::string& strError, b
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Discover(boost::thread_group& threadGroup)
|
void Discover()
|
||||||
{
|
{
|
||||||
if (!fDiscover)
|
if (!fDiscover)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -37,10 +37,6 @@
|
||||||
class CScheduler;
|
class CScheduler;
|
||||||
class CNode;
|
class CNode;
|
||||||
|
|
||||||
namespace boost {
|
|
||||||
class thread_group;
|
|
||||||
} // namespace boost
|
|
||||||
|
|
||||||
/** Time between pings automatically sent out for latency probing and keepalive (in seconds). */
|
/** Time between pings automatically sent out for latency probing and keepalive (in seconds). */
|
||||||
static const int PING_INTERVAL = 2 * 60;
|
static const int PING_INTERVAL = 2 * 60;
|
||||||
/** Time after which to disconnect, after waiting for a ping response (or inactivity). */
|
/** Time after which to disconnect, after waiting for a ping response (or inactivity). */
|
||||||
|
@ -441,7 +437,7 @@ private:
|
||||||
friend struct CConnmanTest;
|
friend struct CConnmanTest;
|
||||||
};
|
};
|
||||||
extern std::unique_ptr<CConnman> g_connman;
|
extern std::unique_ptr<CConnman> g_connman;
|
||||||
void Discover(boost::thread_group& threadGroup);
|
void Discover();
|
||||||
void StartMapPort();
|
void StartMapPort();
|
||||||
void InterruptMapPort();
|
void InterruptMapPort();
|
||||||
void StopMapPort();
|
void StopMapPort();
|
||||||
|
|
Loading…
Add table
Reference in a new issue