From b180d5f975b3fd9a096a712adf9589c360831f72 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 17 Aug 2010 22:19:36 -0400 Subject: Always unload socketengines/database/protocl etc modules last, and fixed a potential crash in m_mysql when unloading when not in GDB --- include/modules.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 307c83d87..51581438c 100644 --- a/include/modules.h +++ b/include/modules.h @@ -152,7 +152,8 @@ enum ModuleReturn /** Priority types which can be returned from Module::Prioritize() */ enum Priority { PRIORITY_FIRST, PRIORITY_DONTCARE, PRIORITY_LAST, PRIORITY_BEFORE, PRIORITY_AFTER }; -enum MODType { CORE, PROTOCOL, THIRD, SUPPORTED, QATESTED, ENCRYPTION, DATABASE, SOCKETENGINE }; +/* Module types, in the order in which they are unloaded. The order these are in is IMPORTANT */ +enum MODType { MT_BEGIN, THIRD, QATESTED, SUPPORTED, CORE, DATABASE, ENCRYPTION, PROTOCOL, SOCKETENGINE, MT_END }; struct Message; typedef std::multimap message_map; @@ -1200,9 +1201,8 @@ class CoreExport ModuleManager /** Unloading all modules, NEVER call this when Anope isn't shutting down. * Ever. - * @param unload_proto true to unload the protocol module */ - static void UnloadAll(bool unload_proto); + static void UnloadAll(); /** Register a service * @param s The service -- cgit