From 876fb4786191b9d88994cfc981a22aa075bca153 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 18 Mar 2009 10:22:38 +0000 Subject: Fix for bug #792 reported by recyclebin, do not attempt to ping local servers which are not fully connected yet, thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11230 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 85d4dc094..6f5a424ff 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -192,6 +192,12 @@ void ModuleSpanningTree::DoPingChecks(time_t curtime) { TreeServer *s = i->second; + // Fix for bug #792, do not ping servers that are not connected yet! + // Remote servers have Socket == NULL and local connected servers have + // Socket->LinkState == CONNECTED + if (!s->GetSocket() || s->GetSocket()->GetLinkState() == CONNECTED) + continue; + // Now do PING checks on all servers TreeServer *mts = Utils->BestRouteTo(s->GetID()); -- cgit v1.2.3