summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp7
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)