From ad0a95da48f05fcf404bf0b25370205bd3e9f362 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 18 Jun 2006 21:44:05 +0000 Subject: BUILD : 1.7.14 (1060) BUGS : 523 NOTES : Module data was cleared before calling AnopeFini, thus being evil to saving-routines and such (like in ns_noop) git-svn-id: svn://svn.anope.org/anope/trunk@1060 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@784 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/modules.c b/src/modules.c index 8296301fe..f366ff23e 100644 --- a/src/modules.c +++ b/src/modules.c @@ -238,11 +238,6 @@ void modules_unload_all(boolean fini) while (mh) { next = mh->next; if(fini) { - if (prepForUnload(mh->m) != MOD_ERR_OK) { - mh = next; - continue; - } - func = (void (*)(void))ano_modsym(mh->m->handle, "AnopeFini"); if (func) { mod_current_module_name = mh->m->name; @@ -250,6 +245,11 @@ void modules_unload_all(boolean fini) mod_current_module_name = NULL; } + if (prepForUnload(mh->m) != MOD_ERR_OK) { + mh = next; + continue; + } + if ((ano_modclose(mh->m->handle)) != 0) alog(ano_moderr()); else -- cgit