mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Address unload order issues for res_stasis* modules
I've noticed when doing a graceful shutdown that the res_stasis_http.so module gets unloaded before the modules that use it, which causes some asserts during their unload. While r386928 was a quick hack to get it to not assert and die, this patch increases the use counts on res_stasis.so and res_stasis_http.so properly. It's a bigger change than I expected, hence the review instead of just committing it. Review: https://reviewboard.asterisk.org/r/2489/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -176,11 +176,13 @@ static int unload_module(void)
|
||||
AST_TEST_UNREGISTER(app_invoke_dne);
|
||||
AST_TEST_UNREGISTER(app_invoke_one);
|
||||
AST_TEST_UNREGISTER(app_replaced);
|
||||
stasis_app_unref();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int load_module(void)
|
||||
{
|
||||
stasis_app_ref();
|
||||
AST_TEST_REGISTER(app_replaced);
|
||||
AST_TEST_REGISTER(app_invoke_one);
|
||||
AST_TEST_REGISTER(app_invoke_dne);
|
||||
|
Reference in New Issue
Block a user