diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-04-25 13:12:03 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-04-25 13:12:03 +0200 |
commit | 53f266a35ff6201d606a4e8f66f0c6cccb630891 (patch) | |
tree | 68817e97b7e60de36a742fd3542da04d6a7cedc8 | |
parent | 60e73a38327cfcdac595e694917c476060bf248a (diff) |
m_spanningtree Don't try to call the OnServerSplit hook when the module is being unloaded
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 3 |
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()) |