diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-16 01:12:18 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-08-16 01:12:18 +0000 |
commit | b3c49ffe90df3e0911b937ca8a7845f352215925 (patch) | |
tree | ff7917f3dff689b1e48cb8c0b9742c03bca5b4a7 /channels | |
parent | 2b58aaef5958409177a79882f435bcdc3a257792 (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.c | 1 |
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; |