[svn-commits] jpeeler: branch 1.4 r138360 - /branches/1.4/channels/chan_dahdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 15 20:12:18 CDT 2008


Author: jpeeler
Date: Fri Aug 15 20:12:18 2008
New Revision: 138360

URL: http://svn.digium.com/view/asterisk?view=rev&rev=138360
Log:
fixes use count to properly decrement if an active dahdi channel is destroyed allowing module to be unloaded

Modified:
    branches/1.4/channels/chan_dahdi.c

Modified: branches/1.4/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_dahdi.c?view=diff&rev=138360&r1=138359&r2=138360
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Fri Aug 15 20:12:18 2008
@@ -6690,6 +6690,7 @@
 			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;




More information about the svn-commits mailing list