diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-06-18 21:44:05 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-06-18 21:44:05 +0000 |
commit | ad0a95da48f05fcf404bf0b25370205bd3e9f362 (patch) | |
tree | 595c139b6cbad6c31243469e375230f0b75145d8 /src | |
parent | 02db7e64381d96b01c97498ecdbbc21544fbfab3 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 |