From 2e691b66550bcd450bcc8f078bb5bd17a5b96ff5 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 26 Apr 2022 21:02:39 -0400 Subject: [PATCH] check if next manage time is too long --- libi2pd/TunnelPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/TunnelPool.cpp b/libi2pd/TunnelPool.cpp index d295bdfa..2ad3f14d 100644 --- a/libi2pd/TunnelPool.cpp +++ b/libi2pd/TunnelPool.cpp @@ -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 ();