Never call load_module / unload_module
authorMark Spencer <markster@digium.com>
Sun, 13 Nov 2005 02:19:14 +0000 (02:19 +0000)
committerMark Spencer <markster@digium.com>
Sun, 13 Nov 2005 02:19:14 +0000 (02:19 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7093 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/pbx_ael.c

index 51328d0..b29571a 100755 (executable)
@@ -1259,8 +1259,8 @@ int load_module(void)
 
 int reload(void)
 {
-       unload_module();
-       return (load_module());
+       ast_context_destroy(NULL, registrar);
+       return pbx_load_module();
 }
 
 int usecount(void)