| 1477 | } |
| 1478 | |
| 1479 | void SSU2Server::RescheduleIntroducersUpdateTimerV6 () |
| 1480 | { |
| 1481 | if (m_IsPublished) |
| 1482 | { |
| 1483 | m_IntroducersUpdateTimerV6.cancel (); |
| 1484 | i2p::context.ClearSSU2Introducers (false); |
| 1485 | m_IntroducersV6.clear (); |
| 1486 | m_IntroducersUpdateTimerV6.expires_after (std::chrono::seconds( |
| 1487 | (SSU2_KEEP_ALIVE_INTERVAL + m_Rng () % SSU2_KEEP_ALIVE_INTERVAL_VARIANCE)/2)); |
| 1488 | m_IntroducersUpdateTimerV6.async_wait (std::bind (&SSU2Server::HandleIntroducersUpdateTimer, |
| 1489 | this, std::placeholders::_1, false)); |
| 1490 | } |
| 1491 | } |
| 1492 | |
| 1493 | void SSU2Server::HandleIntroducersUpdateTimer (const boost::system::error_code& ecode, bool v4) |
| 1494 | { |
no test coverage detected