mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
committed by
manojsdoshi
parent
80bd107e57
commit
38dd2d6677
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user