Skip to content

Commit

Permalink
check if next manage time is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 27, 2022
1 parent f22e105 commit 2e691b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/TunnelPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit 2e691b6

Please sign in to comment.