mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
check network status
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user