summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-01 21:45:37 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-01 21:45:37 +0000
commit8b01909f73123afafa451c17740df993902b7db4 (patch)
tree1d90affe7d8c1ffe43f0eb80e2bf511c16df20d3 /src/modules/m_spanningtree
parenta03554f504179e5e24de0c33079f3cb109f3d26e (diff)
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
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp2
1 files changed, 1 insertions, 1 deletions
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