diff options
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 3ea0cd329..4caa13bb1 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -4716,6 +4716,10 @@ static int load_module(void) unload_module(); return AST_MODULE_LOAD_DECLINE; } + + /* For Optional API. */ + ast_module_shutdown_ref(ast_module_info->self); + return AST_MODULE_LOAD_SUCCESS; } |