summaryrefslogtreecommitdiff
path: root/apps/app_celgenuserevent.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2012-11-27 20:39:51 +0000
committerRichard Mudgett <rmudgett@digium.com>2012-11-27 20:39:51 +0000
commitebcc4e3da1b71ca12f98a3cf957865d8dd43aa40 (patch)
tree0a3faf54f064fa99aa26d682b463e51a9fe0d2a5 /apps/app_celgenuserevent.c
parentdc653e09bb2c9835c429c8a2162a9af11bc81362 (diff)
Remove unnecessary channel module references.
* Removed call to ast_module_user_hangup_all() in res_config_mysql.c since it is effectively a noop. No channels can attach a reference to that module. * Removed call to ast_module_user_hangup_all() in app_celgenuserevent.c. The caller of unload_module() has already called it. * Removed redundant channel module references in pbx_dundi.c. The registered dialplan function callback dispatchers for the read/read2/write callbacks already reference the module before calling. * pbx_dundi: Moved unregistering CLI commands, DUNDi switch, and dialplan functions to the first thing the unload_module() does. This will reduce the chance of new channels using DUNDi services while the module is being torn down. ........ Merged revisions 376657 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 376658 from http://svn.asterisk.org/svn/asterisk/branches/10 ........ Merged revisions 376659 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@376660 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_celgenuserevent.c')
-rw-r--r--apps/app_celgenuserevent.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/app_celgenuserevent.c b/apps/app_celgenuserevent.c
index 57dde86de..f5714d039 100644
--- a/apps/app_celgenuserevent.c
+++ b/apps/app_celgenuserevent.c
@@ -80,13 +80,8 @@ static int celgenuserevent_exec(struct ast_channel *chan, const char *data)
static int unload_module(void)
{
- int res;
-
- res = ast_unregister_application(app);
-
- ast_module_user_hangup_all();
-
- return res;
+ ast_unregister_application(app);
+ return 0;
}
static int load_module(void)