diff options
-rw-r--r-- | src/modules/m_spanningtree/server.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index 1254d14d4..d53096a87 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -152,6 +152,8 @@ bool TreeSocket::Outbound_Reply_Server(std::deque<std::string> ¶ms) */ this->LinkState = CONNECTED; + Utils->timeoutlist.erase(this); + TreeServer *Node = new TreeServer(this->Utils, this->ServerInstance, sname, description, sid, Utils->TreeRoot, this, x->Hidden); if (Node->DuplicateID()) diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 8b3fbf2fb..7e5c7fad5 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -173,10 +173,11 @@ bool TreeSocket::ProcessLine(std::string &line) } } this->LinkState = CONNECTED; - Link* lnk = Utils->FindLink(InboundServerName); Utils->timeoutlist.erase(this); + Link* lnk = Utils->FindLink(InboundServerName); + Node = new TreeServer(this->Utils, this->ServerInstance, InboundServerName, InboundDescription, InboundSID, Utils->TreeRoot, this, lnk ? lnk->Hidden : false); if (Node->DuplicateID()) |