From 8b01909f73123afafa451c17740df993902b7db4 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 1 Apr 2009 21:45:37 +0000 Subject: Fix ping server-skip logic from bug 792 fix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11277 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index ad51f4019..0a6ed9390 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -195,7 +195,7 @@ void ModuleSpanningTree::DoPingChecks(time_t curtime) // 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) + if (s->GetSocket() && s->GetSocket()->GetLinkState() != CONNECTED) continue; // Now do PING checks on all servers -- cgit v1.2.3