diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-05 22:16:47 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-05 22:16:47 +0000 |
commit | 626f01e70ee05ba7e595f909da2c1f4a0c63ec0f (patch) | |
tree | 26d4c8266b23e110b954e25e9f1c396b8f95ee6d /src | |
parent | d73ed5739624deafbc7574e67b22d75fbbacc309 (diff) |
Fixed routing optimization #1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2208 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index d12966025..836b8b19f 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -115,7 +115,12 @@ class TreeServer // find the 'route' for this server (e.g. the one directly connected // to the local server, which we can use to reach it) Route = Above; - if (Route != TreeRoot) + if (Route == TreeRoot) + { + log(DEBUG,"(0) Route is %s",this->GetName().c_str()); + Route = this; + } + else { log(DEBUG,"(1) Route is %s",Route->GetName().c_str()); while (Route->GetParent() != TreeRoot) |