From 96a646734fe34d65077cbe49c533b80759fc12e8 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Mon, 16 Jul 2007 13:35:20 +0000 Subject: 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: https://origsvn.digium.com/svn/asterisk/trunk@75183 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_cdr.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'apps/app_cdr.c') diff --git a/apps/app_cdr.c b/apps/app_cdr.c index c0d88fbbb..23044de80 100644 --- a/apps/app_cdr.c +++ b/apps/app_cdr.c @@ -61,13 +61,7 @@ static int nocdr_exec(struct ast_channel *chan, void *data) static int unload_module(void) { - int res; - - res = ast_unregister_application(nocdr_app); - - ast_module_user_hangup_all(); - - return res; + return ast_unregister_application(nocdr_app); } static int load_module(void) -- cgit v1.2.3