diff options
author | David M. Lee <dlee@digium.com> | 2013-05-10 17:12:57 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-05-10 17:12:57 +0000 |
commit | 4666079b05ea3b189e4fdccc665f7a61bf3e5535 (patch) | |
tree | 826e54b6a78671d7e911cbff4799b31b0aed9a30 /tests/test_res_stasis.c | |
parent | db925c3f066fc73849af06bcfc966467af349891 (diff) |
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
Diffstat (limited to 'tests/test_res_stasis.c')
-rw-r--r-- | tests/test_res_stasis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_res_stasis.c b/tests/test_res_stasis.c index 0e7daf5dd..a824b8a8d 100644 --- a/tests/test_res_stasis.c +++ b/tests/test_res_stasis.c @@ -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); |