check if next manage time is too long

This commit is contained in:
orignal committed 2022-04-26 21:02:39 -04:00
1 parent f22e10537b
commit 2e691b6655
1 file changed
+1 -1
+1 -1
View File
@@ -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 ();