From f0653b63eadbc96e1d47813bfe9e374680ce257b Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Thu, 4 Feb 2021 09:08:05 -0500 Subject: [PATCH] Fix idle peer timer Fixes 3754 --- src/ripple/overlay/impl/OverlayImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/overlay/impl/OverlayImpl.cpp b/src/ripple/overlay/impl/OverlayImpl.cpp index 409d687cd50..13721b62c35 100644 --- a/src/ripple/overlay/impl/OverlayImpl.cpp +++ b/src/ripple/overlay/impl/OverlayImpl.cpp @@ -100,7 +100,7 @@ OverlayImpl::Timer::on_timer(error_code ec) overlay_.sendEndpoints(); overlay_.autoConnect(); - if ((overlay_.timer_count_ % Tuning::checkIdlePeers) == 0) + if ((++overlay_.timer_count_ % Tuning::checkIdlePeers) == 0) overlay_.deleteIdlePeers(); timer_.expires_from_now(std::chrono::seconds(1));