From 0ff521b040817a9cc1a523f1a6fe52df8f63db59 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 e0c60f7683..45c86d5a00 100644 --- a/modules/ripple_app/misc/NetworkOPs.cpp +++ b/modules/ripple_app/misc/NetworkOPs.cpp @@ -99,7 +99,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(); } } @@ -2397,7 +2397,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; } @@ -2418,5 +2418,3 @@ void NetworkOPs::doClusterReport () PackedMessage::pointer message = boost::make_shared(cluster, protocol::mtCLUSTER); getApp().getPeers().relayMessageCluster (NULL, message); } - -// vim:ts=4