1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 12:36:38 +02:00

Cleanup DNS requests when modules are unloaded, fixes unloading m_dnsbl during the middle of queries

This commit is contained in:
Adam
2010-09-14 18:24:14 -04:00
parent 630f3815ce
commit e7ac33fd62
5 changed files with 28 additions and 15 deletions
+3
View File
@@ -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;
}