From 7a8a69fb34fb9142b0c8943064f024e486c68a85 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 10 Jan 2006 21:39:17 +0000 Subject: [PATCH] Fixed methods being used for wrong object type git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2768 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index e8b761543..1c0b91241 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1810,13 +1810,6 @@ class TreeSocket : public InspSocket if (line == "") return true; Srv->Log(DEBUG,"IN: "+line); - - /* Fix by brain: - * When there is activity on the socket, reset the ping counter so - * that we're not wasting bandwidth pinging an active server. - */ - this->SetNextPingTime(curtime + 300); - this->SetPingFlag(); std::deque params; this->Split(line,true,params); @@ -1974,6 +1967,13 @@ class TreeSocket : public InspSocket log(DEBUG,"Protocol violation: Fake direction in command '%s' from connection '%s'",line.c_str(),this->GetName().c_str()); return true; } + + /* Fix by brain: + * When there is activity on the socket, reset the ping counter so + * that we're not wasting bandwidth pinging an active server. + */ + route_back_again->SetNextPingTime(time(NULL) + 300); + route_back_again->SetPingFlag(); } if (command == "SVSMODE") -- 2.39.5