diff options
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index e657dd5fb..c6c9ae700 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -54,7 +54,10 @@ void ServerSocketListener::OnAcceptReady(const std::string &ipconnectedto, int n } } - this->GetIOHook()->OnRawSocketAccept(newsock, incomingip.c_str(), this->bind_port); + if (this->GetIOHook()) + { + this->GetIOHook()->OnRawSocketAccept(newsock, incomingip.c_str(), this->bind_port); + } /* we don't need a pointer to this, creating it stores it in the necessary places */ new TreeSocket(this->Utils, this->ServerInstance, newsock, ip, this->GetIOHook()); |