diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-12-15 12:24:43 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-15 12:24:43 -0600 |
commit | eb23919e69a309d44e86d529e094671fe55da6ca (patch) | |
tree | 77615ea8efb521bf3569de310506c5386ac8e59d /res/res_smdi.c | |
parent | c9bcd888a284f02d745988597ad70df9b0fd38ae (diff) | |
parent | 03c25a869fb3f4380cf739d5ca818cc58fea56c7 (diff) |
Merge "res_smdi: Fix shutdown ref."
Diffstat (limited to 'res/res_smdi.c')
-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 054e6aab6..612a4b87b 100644 --- a/res/res_smdi.c +++ b/res/res_smdi.c @@ -1405,6 +1405,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; } @@ -1434,9 +1437,6 @@ static int _unload_module(int fromload) smdi_loaded = 0; - /* For Optional API. */ - ast_module_shutdown_ref(AST_MODULE_SELF); - return 0; } |