From b9970e19081d59e8d7e26a46f06fde57f4d6c911 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 7 Aug 2022 09:50:30 -0400 Subject: [PATCH] cleanup introducers upon reschedule --- libi2pd/SSU2.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libi2pd/SSU2.cpp b/libi2pd/SSU2.cpp index ed3dc185..fd0c5a22 100644 --- a/libi2pd/SSU2.cpp +++ b/libi2pd/SSU2.cpp @@ -941,6 +941,8 @@ namespace transport if (m_IsPublished) { m_IntroducersUpdateTimer.cancel (); + i2p::context.ClearSSU2Introducers (true); + m_Introducers.clear (); m_IntroducersUpdateTimer.expires_from_now (boost::posix_time::seconds(SSU2_KEEP_ALIVE_INTERVAL/2)); m_IntroducersUpdateTimer.async_wait (std::bind (&SSU2Server::HandleIntroducersUpdateTimer, this, std::placeholders::_1, true)); @@ -962,6 +964,8 @@ namespace transport if (m_IsPublished) { m_IntroducersUpdateTimerV6.cancel (); + i2p::context.ClearSSU2Introducers (false); + m_IntroducersV6.clear (); m_IntroducersUpdateTimerV6.expires_from_now (boost::posix_time::seconds(SSU2_KEEP_ALIVE_INTERVAL/2)); m_IntroducersUpdateTimerV6.async_wait (std::bind (&SSU2Server::HandleIntroducersUpdateTimer, this, std::placeholders::_1, false));