From 9ba8ea679c7a387590ade062756ef9df0dd709d5 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 24 Aug 2013 08:34:17 -0700 Subject: [PATCH] Fix call doClusterReport on timer --- modules/ripple_app/misc/NetworkOPs.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/ripple_app/misc/NetworkOPs.cpp b/modules/ripple_app/misc/NetworkOPs.cpp index 48bfeae8d..3886954bd 100644 --- a/modules/ripple_app/misc/NetworkOPs.cpp +++ b/modules/ripple_app/misc/NetworkOPs.cpp @@ -100,7 +100,7 @@ void NetworkOPs::onDeadlineTimer (DeadlineTimer& timer) else if (timer == m_clusterTimer) { getApp().getJobQueue ().addJob (jtNETOP_CLUSTER, "NetworkOPs::doClusterReport", - BIND_TYPE (&NetworkOPs::processNetTimer, this)); + BIND_TYPE (&NetworkOPs::doClusterReport, this)); //doClusterReport(); } } @@ -2398,7 +2398,7 @@ void NetworkOPs::doClusterReport () ClusterNodeStatus us("", synced ? getApp().getFeeTrack().getLocalFee() : 0, getNetworkTimeNC()); if (!getApp().getUNL().nodeUpdate(getApp().getLocalCredentials().getNodePublic(), us)) { - WriteLog (lsDEBUG, NetworkOPs) << "To soon to send cluster update"; + WriteLog (lsDEBUG, NetworkOPs) << "Too soon to send cluster update"; return; } @@ -2419,5 +2419,3 @@ void NetworkOPs::doClusterReport () PackedMessage::pointer message = boost::make_shared(cluster, protocol::mtCLUSTER); getApp().getPeers().relayMessageCluster (NULL, message); } - -// vim:ts=4