diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-16 13:35:20 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-16 13:35:20 +0000 |
commit | 9e24ed5ccff762fa9d412d1a1321df2de1b26423 (patch) | |
tree | 0ab20c37aa720b15f7617941caf77185337b181d /apps/app_chanisavail.c | |
parent | 2bf80313d6f8f29e2c9aa74c562e1d1e6c37e6a1 (diff) |
It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_chanisavail.c')
-rw-r--r-- | apps/app_chanisavail.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/app_chanisavail.c b/apps/app_chanisavail.c index 13b9197bb..dbcc9b4d9 100644 --- a/apps/app_chanisavail.c +++ b/apps/app_chanisavail.c @@ -157,13 +157,7 @@ static int chanavail_exec(struct ast_channel *chan, void *data) static int unload_module(void) { - int res = 0; - - res = ast_unregister_application(app); - - ast_module_user_hangup_all(); - - return res; + return ast_unregister_application(app); } static int load_module(void) |