Skip to content

Commit

Permalink
Fix idle peer timer:
Browse files Browse the repository at this point in the history
This commit fixes  #3754
  • Loading branch information
gregtatcam authored and manojsdoshi committed Feb 5, 2021
1 parent 80bd107 commit 38dd2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ripple/overlay/impl/OverlayImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 38dd2d6

Please sign in to comment.