From 5372ed54a22c60280aa8fde794776834a0ced1d9 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Mon, 10 Nov 2014 19:18:11 -0600 Subject: [PATCH] Changing keepalive to use send function. --- rai/core/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rai/core/core.cpp b/rai/core/core.cpp index a0869712fa..2eb4625640 100644 --- a/rai/core/core.cpp +++ b/rai/core/core.cpp @@ -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 ();}); }