diff options
author | Adam <Adam@anope.org> | 2010-09-14 18:24:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-09-14 18:24:14 -0400 |
commit | e7ac33fd622ae6e21bc9af684832b7de5cfa0c0c (patch) | |
tree | 1a9f5208bf3109db46b3b73c0030bcaba4039523 /src/modulemanager.cpp | |
parent | 630f3815ce5e1eac9dd8f82601c955131c3dce68 (diff) |
Cleanup DNS requests when modules are unloaded, fixes unloading m_dnsbl during the middle of queries
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index bacf6c8d1..dc1258340 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -240,6 +240,9 @@ int ModuleManager::UnloadModule(Module *m, User *u) FOREACH_MOD(I_OnModuleUnload, OnModuleUnload(u, m)); + if (DNSEngine) + DNSEngine->Cleanup(m); + DeleteModule(m); return MOD_ERR_OK; } |