diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-23 23:10:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-23 23:10:16 +0000 |
commit | f12fd5382fef6aa5c6f75b2614460089a9af9f27 (patch) | |
tree | 71d48061564c7de3a9c6050a3a2ace97dd70e142 /src/modules/m_httpd.cpp | |
parent | 05670eb4a92765ec954f81e775419cff7efcd87c (diff) |
Fix crash on unload of modules with listening sockets -- some situations require that the socket cull list is purged *immediately*, provide facility for this.
Also squish some silly error output on unloading spanningtree.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7529 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r-- | src/modules/m_httpd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 8494863a3..0e06f5363 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -405,9 +405,10 @@ class ModuleHttpServer : public Module for (size_t i = 0; i < httpsocks.size(); i++) { ServerInstance->SE->DelFd(httpsocks[i]); + httpsocks[i]->Close(); delete httpsocks[i]->GetIndex(); - delete httpsocks[i]; } + ServerInstance->InspSocketCull(); } virtual Version GetVersion() |