aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-16 01:12:18 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-16 01:12:18 +0000
commitb3c49ffe90df3e0911b937ca8a7845f352215925 (patch)
treeff7917f3dff689b1e48cb8c0b9742c03bca5b4a7 /channels
parent2b58aaef5958409177a79882f435bcdc3a257792 (diff)
fixes use count to properly decrement if an active dahdi channel is destroyed allowing module to be unloaded
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@138360 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index d1fe75d88..5234b8c20 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -6690,6 +6690,7 @@ static int dahdi_destroy_channel_bynum(int channel)
int x = DAHDI_FLASH;
ioctl(tmp->subs[SUB_REAL].dfd, DAHDI_HOOK, &x); /* important to create an event for dahdi_wait_event to register so that all ss_threads terminate */
destroy_channel(prev, tmp, 1);
+ ast_module_unref(ast_module_info->self);
return RESULT_SUCCESS;
}
prev = tmp;