mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
parent
c0c7ede97b
commit
d59f7a09db
1 changed files with 9 additions and 0 deletions
|
@ -243,6 +243,7 @@ int pqiNetStateBox::updateNetState()
|
||||||
|
|
||||||
void pqiNetStateBox::clearOldNetworkData()
|
void pqiNetStateBox::clearOldNetworkData()
|
||||||
{
|
{
|
||||||
|
#ifdef RS_USE_DHT_STUNNER
|
||||||
/* check if any measurements are too old to consider */
|
/* check if any measurements are too old to consider */
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
if (now - mStunProxyTS > NETSTATE_PARAM_TIMEOUT)
|
if (now - mStunProxyTS > NETSTATE_PARAM_TIMEOUT)
|
||||||
|
@ -254,6 +255,14 @@ void pqiNetStateBox::clearOldNetworkData()
|
||||||
{
|
{
|
||||||
mStunDhtSet = false;
|
mStunDhtSet = false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
//Set values, as they are not updated.
|
||||||
|
mStunProxySet = true;
|
||||||
|
mStunDhtSet = true;
|
||||||
|
mStunProxyStable = true;
|
||||||
|
mStunDhtStable = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue