mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
Fix hidden node crashing at the startup, caused by calling uninitialized objects.
This commit is contained in:
parent
891d7e7c9a
commit
6863f4cc70
2 changed files with 8 additions and 6 deletions
|
@ -1803,6 +1803,7 @@ void p3NetMgrIMPL::updateNatSetting()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RS_USE_DHT_STUNNER
|
#ifdef RS_USE_DHT_STUNNER
|
||||||
|
if (mProxyStunner) {
|
||||||
switch(natType)
|
switch(natType)
|
||||||
{
|
{
|
||||||
case RSNET_NATTYPE_RESTRICTED_CONE:
|
case RSNET_NATTYPE_RESTRICTED_CONE:
|
||||||
|
@ -1827,6 +1828,7 @@ void p3NetMgrIMPL::updateNatSetting()
|
||||||
mProxyStunner->setRefreshPeriod(NET_STUNNER_PERIOD_SLOW);
|
mProxyStunner->setRefreshPeriod(NET_STUNNER_PERIOD_SLOW);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif // RS_USE_DHT_STUNNER
|
#endif // RS_USE_DHT_STUNNER
|
||||||
|
|
||||||
/* This controls the Attach mode of the DHT...
|
/* This controls the Attach mode of the DHT...
|
||||||
|
|
|
@ -291,8 +291,8 @@ private:
|
||||||
|
|
||||||
//p3BitDht *mBitDht;
|
//p3BitDht *mBitDht;
|
||||||
#ifdef RS_USE_DHT_STUNNER
|
#ifdef RS_USE_DHT_STUNNER
|
||||||
pqiAddrAssist *mDhtStunner;
|
pqiAddrAssist *mDhtStunner = nullptr;
|
||||||
pqiAddrAssist *mProxyStunner;
|
pqiAddrAssist *mProxyStunner = nullptr;
|
||||||
#endif // RS_USE_DHT_STUNNER
|
#endif // RS_USE_DHT_STUNNER
|
||||||
|
|
||||||
RsMutex mNetMtx; /* protects below */
|
RsMutex mNetMtx; /* protects below */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue