diff options
author | Claude Patry <cpatry@gmail.com> | 2008-05-10 03:28:50 +0000 |
---|---|---|
committer | Claude Patry <cpatry@gmail.com> | 2008-05-10 03:28:50 +0000 |
commit | dfe475cc595c0bd93a1692bc740bbce3ec91078a (patch) | |
tree | ae75d829dc1c8de003e650ea963b6ad03843e846 /apps/app_jack.c | |
parent | df1912cd4fe03dc97496d8b25cd1e81a8672c9ce (diff) |
ameliorate load and unload to dont use DECLINED or FAILED, when theres no .conf involved.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@115594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_jack.c')
-rw-r--r-- | apps/app_jack.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/app_jack.c b/apps/app_jack.c index 316521484..2aa253f9b 100644 --- a/apps/app_jack.c +++ b/apps/app_jack.c @@ -977,15 +977,12 @@ static int unload_module(void) static int load_module(void) { - if (ast_register_application(jack_app, jack_exec, jack_synopsis, jack_desc)) - return AST_MODULE_LOAD_DECLINE; + int res = 0; - if (ast_custom_function_register(&jack_hook_function)) { - ast_unregister_application(jack_app); - return AST_MODULE_LOAD_DECLINE; - } + res |= ast_register_application(jack_app, jack_exec, jack_synopsis, jack_desc); + res |= ast_custom_function_register(&jack_hook_function); - return AST_MODULE_LOAD_SUCCESS; + return res; } AST_MODULE_INFO_STANDARD(ASTERISK_GPL_KEY, "JACK Interface"); |