diff options
-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) |