Skip to content

Commit

Permalink
Changing keepalive to use send function.
Browse files Browse the repository at this point in the history
  • Loading branch information
clemahieu committed Nov 11, 2014
1 parent 4b58d86 commit 5372ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rai/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,7 @@ void rai::processor::ongoing_keepalive ()
auto peers (client.peers.purge_list (std::chrono::system_clock::now () - cutoff));
for (auto i (peers.begin ()), j (peers.end ()); i != j && std::chrono::system_clock::now () - i->last_attempt > period; ++i)
{
client.network.refresh_keepalive (i->endpoint);
client.network.send_keepalive (i->endpoint);
}
client.service.add (std::chrono::system_clock::now () + period, [this] () { ongoing_keepalive ();});
}
Expand Down

0 comments on commit 5372ed5

Please sign in to comment.