[asterisk-commits] wedhorn: branch 12 r406987 - /branches/12/channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jan 30 23:28:20 CST 2014


Author: wedhorn
Date: Thu Jan 30 23:28:14 2014
New Revision: 406987

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=406987
Log:
Skinny: fix up possible double unlock of chan.

Return before chan is possibly unlocked a second time when hanging up
a channel in SUBSTATE_OFFHOOK.

Modified:
    branches/12/channels/chan_skinny.c

Modified: branches/12/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/channels/chan_skinny.c?view=diff&rev=406987&r1=406986&r2=406987
==============================================================================
--- branches/12/channels/chan_skinny.c (original)
+++ branches/12/channels/chan_skinny.c Thu Jan 30 23:28:14 2014
@@ -5799,6 +5799,7 @@
 				sub->substate = SUBSTATE_ONHOOK;
 				skinny_unlocksub(sub);
 				ast_hangup(sub->owner);
+				return;
 			} else {
 				sub->substate = SUBSTATE_ONHOOK;
 				ast_queue_hangup(sub->owner);




More information about the asterisk-commits mailing list