summaryrefslogtreecommitdiff
path: root/res/res_ari_channels.c
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-01-29 12:39:34 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-01-29 12:39:34 -0600
commita231e1d155130f49f0235a20e6974b4be91c729f (patch)
treec380bfc8075515f3791935afd737bc5328cddbcf /res/res_ari_channels.c
parentbd565fc7cf79b8b18e3a88c01bbf1d364abdf7c8 (diff)
parent527cf5a57033820313356414b971fdf0f4382b21 (diff)
Merge "Remove redundant module checks and references."
Diffstat (limited to 'res/res_ari_channels.c')
-rw-r--r--res/res_ari_channels.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/res/res_ari_channels.c b/res/res_ari_channels.c
index 7ca7e2e4d..dae146c43 100644
--- a/res/res_ari_channels.c
+++ b/res/res_ari_channels.c
@@ -2848,7 +2848,6 @@ static struct stasis_rest_handlers channels = {
static int unload_module(void)
{
ast_ari_remove_handler(&channels);
- stasis_app_unref();
return 0;
}
@@ -2856,10 +2855,7 @@ static int load_module(void)
{
int res = 0;
- CHECK_ARI_MODULE_LOADED();
-
- stasis_app_ref();
res |= ast_ari_add_handler(&channels);
if (res) {
unload_module();