summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 926448ad7..f03aff9af 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -1641,7 +1641,8 @@ void TreeSocket::OnTimeout()
void TreeSocket::OnClose()
{
- if (this->LinkState == LISTENER)
+ // Test fix for big fuckup
+ if (this->LinkState != CONNECTED)
return;
// Connection closed.