diff options
author | Corey Farrell <git@cfware.com> | 2017-12-15 08:56:13 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-12-15 08:56:13 -0500 |
commit | 03c25a869fb3f4380cf739d5ca818cc58fea56c7 (patch) | |
tree | 9ec99851688d07980ceae5d51cf828a1ec8aa616 /res | |
parent | e7a6e64039f24887495ea6d5d95b477fa792840e (diff) |
res_smdi: Fix shutdown ref.
When adding shutdown refs for OPTIONAL_API components I accidentally
added it to the unload_module function in res_smdi. Move it to
load_module.
Change-Id: I2b9da38fbc11ef78ea23dbb2df92b684be7f647c
Diffstat (limited to 'res')
-rw-r--r-- | res/res_smdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_smdi.c b/res/res_smdi.c index 0edabb83c..e2b2e1b06 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -1377,6 +1377,9 @@ static int load_module(void) ast_custom_function_register(&smdi_msg_retrieve_function); ast_custom_function_register(&smdi_msg_function); + /* For Optional API. */ + ast_module_shutdown_ref(AST_MODULE_SELF); + return AST_MODULE_LOAD_SUCCESS; } @@ -1406,9 +1409,6 @@ static int _unload_module(int fromload) smdi_loaded = 0; - /* For Optional API. */ - ast_module_shutdown_ref(AST_MODULE_SELF); - return 0; } |