Browse Source

don't create new tunnels if offline

pull/1559/head
orignal 4 years ago
parent
commit
e3464add50
  1. 2
      libi2pd/Tunnel.cpp

2
libi2pd/Tunnel.cpp

@ -522,7 +522,7 @@ namespace tunnel @@ -522,7 +522,7 @@ namespace tunnel
}
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 ();
lastTs = ts;

Loading…
Cancel
Save