diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-12-15 12:31:47 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-15 12:31:47 -0600 |
commit | e31e3b581ba57b2abe18e20db2acad1fd1c16f62 (patch) | |
tree | d87fa011d4cd724b536cde265aca2bca91bb76ba | |
parent | ccb563d357db1ee5bdf1357dd9480f605281694b (diff) | |
parent | 8165115faadedff067ea13540e5ea66c25198799 (diff) |
Merge "res_smdi: Fix shutdown ref." into 13
-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 1dc9cbe5d..5288bbee5 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -1407,6 +1407,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_info->self); + return AST_MODULE_LOAD_SUCCESS; } @@ -1436,9 +1439,6 @@ static int _unload_module(int fromload) smdi_loaded = 0; - /* For Optional API. */ - ast_module_shutdown_ref(ast_module_info->self); - return 0; } |