diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-12-15 12:39:17 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-12-15 12:39:17 -0600 |
commit | 3418bd94ff8452fc39931711361caa41358a6fcc (patch) | |
tree | e72d755bcef4758ba521a2d43cdd8d3d1514d996 | |
parent | f06f311497350a9bee91e93fcd576145f23fa28a (diff) | |
parent | 044ed1c5d8d56e7375c528d0cfe243665c6851a1 (diff) |
Merge "res_smdi: Fix shutdown ref." into 15
-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; } |