summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-04-25 13:12:03 +0200
committerAttila Molnar <attilamolnar@hush.com>2016-04-25 13:12:03 +0200
commit53f266a35ff6201d606a4e8f66f0c6cccb630891 (patch)
tree68817e97b7e60de36a742fd3542da04d6a7cedc8 /src/modules/m_spanningtree
parent60e73a38327cfcdac595e694917c476060bf248a (diff)
m_spanningtree Don't try to call the OnServerSplit hook when the module is being unloaded
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp
index 48f16c9df..1fc9455b0 100644
--- a/src/modules/m_spanningtree/treeserver.cpp
+++ b/src/modules/m_spanningtree/treeserver.cpp
@@ -159,7 +159,8 @@ void TreeServer::FinishBurst()
void TreeServer::SQuitChild(TreeServer* server, const std::string& reason)
{
- FOREACH_MOD_CUSTOM(Utils->Creator->GetEventProvider(), SpanningTreeEventListener, OnServerSplit, (server));
+ if (!Utils->Creator->dying)
+ FOREACH_MOD_CUSTOM(Utils->Creator->GetEventProvider(), SpanningTreeEventListener, OnServerSplit, (server));
stdalgo::erase(Children, server);
if (IsRoot())