Merge "Prevent unload of modules which implement an Optional API."

This commit is contained in:
Joshua Colp
2017-11-06 10:11:51 -06:00
committed by Gerrit Code Review
7 changed files with 26 additions and 0 deletions

View File

@@ -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;
}