Browse Source

check if next manage time is too long

pull/1752/head
orignal 3 years ago
parent
commit
2e691b6655
  1. 2
      libi2pd/TunnelPool.cpp

2
libi2pd/TunnelPool.cpp

@ -382,7 +382,7 @@ namespace tunnel @@ -382,7 +382,7 @@ namespace tunnel
void TunnelPool::ManageTunnels (uint64_t ts)
{
if (ts > m_NextManageTime)
if (ts > m_NextManageTime || ts + 2*TUNNEL_POOL_MANAGE_INTERVAL < m_NextManageTime) // in case if clock was adjusted
{
CreateTunnels ();
TestTunnels ();

Loading…
Cancel
Save