From 3c1a2fbfca39b47e2f6df7862e7c83fe9f49f1c9 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Wed, 29 Aug 2007 19:05:59 +0000 Subject: BUILD : 1.7.19 (1289) BUGS : 768 NOTES : Fixed module runtime directory not always being cleaned up nicely git-svn-id: svn://svn.anope.org/anope/trunk@1289 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1007 5417fbe8-f217-4b02-8779-1006273d7864 --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 081b6ad00..ff0af6a01 100644 --- a/src/main.c +++ b/src/main.c @@ -309,6 +309,8 @@ static void services_shutdown(void) /* First don't unload protocol module, then do so */ modules_unload_all(true, false); modules_unload_all(true, true); + /* just in case they weren't all removed at least run once */ + ModuleRunTimeDirCleanUp(); } /*************************************************************************/ @@ -567,6 +569,9 @@ int main(int ac, char **av, char **envp) #endif { do_listnicks(ac, av); + modules_unload_all(1, 0); + modules_unload_all(1, 1); + ModuleRunTimeDirCleanUp(); return 0; } #ifdef _WIN32 @@ -576,6 +581,9 @@ int main(int ac, char **av, char **envp) #endif { do_listchans(ac, av); + modules_unload_all(1, 0); + modules_unload_all(1, 1); + ModuleRunTimeDirCleanUp(); return 0; } -- cgit