aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-16 01:13:26 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-16 01:13:26 +0000
commit962eea31ad8a8f21d5e7d1e817fbd2e4f3803515 (patch)
tree99c3a1a3bf763c7761d26b4ff04d0c55041766c9 /channels
parent765aca3dfcce00c851db49c24c51dca844a5da20 (diff)
Merged revisions 138360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r138360 | jpeeler | 2008-08-15 20:12:18 -0500 (Fri, 15 Aug 2008) | 1 line 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/trunk@138361 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 9c70f189b..07e2212fd 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -7645,6 +7645,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;