mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check network status
This commit is contained in:
parent
e21dac21c8
commit
ffa0f0afd9
5 changed files with 24 additions and 5 deletions
|
@ -125,7 +125,8 @@ namespace data
|
|||
}
|
||||
}
|
||||
if (!m_IsRunning) break;
|
||||
|
||||
if (!i2p::transport::transports.IsOnline ()) continue; // don't manage netdb when offline
|
||||
|
||||
uint64_t ts = i2p::util::GetSecondsSinceEpoch ();
|
||||
if (ts - lastManageRequest >= 15) // manage requests every 15 seconds
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue