mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-18 23:36:39 +01:00
don't create new tunnels if offline
This commit is contained in:
parent
18bb4a71c2
commit
e3464add50
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ namespace tunnel
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t ts = i2p::util::GetSecondsSinceEpoch ();
|
uint64_t ts = i2p::util::GetSecondsSinceEpoch ();
|
||||||
if (ts - lastTs >= 15) // manage tunnels every 15 seconds
|
if (ts - lastTs >= 15 && i2p::transport::transports.IsOnline()) // manage tunnels every 15 seconds
|
||||||
{
|
{
|
||||||
ManageTunnels ();
|
ManageTunnels ();
|
||||||
lastTs = ts;
|
lastTs = ts;
|
||||||
|
|
Loading…
Add table
Reference in a new issue