diff options
author | Joshua Colp <jcolp@digium.com> | 2017-11-06 10:11:51 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-06 10:11:51 -0600 |
commit | 68b6ebd83614a5cfacc43191f785a82a4239a9e6 (patch) | |
tree | 46f822ceda11aa9931cc5172e911faa72e1c3141 /res/res_agi.c | |
parent | ac7ec5026c11ca598d6de1ce5ce004c3ffe1c96c (diff) | |
parent | 79f111e1f317fffd3222b70c31a0fac65c40234e (diff) |
Merge "Prevent unload of modules which implement an Optional API."
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 7d2f03afc..13af48f49 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -4714,6 +4714,10 @@ static int load_module(void) unload_module(); return AST_MODULE_LOAD_DECLINE; } + + /* For Optional API. */ + ast_module_shutdown_ref(AST_MODULE_SELF); + return AST_MODULE_LOAD_SUCCESS; } |