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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user