[asterisk-commits] jpeeler: branch 1.4 r143475 - /branches/1.4/res/res_features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 18 16:01:23 CDT 2008


Author: jpeeler
Date: Thu Sep 18 16:01:23 2008
New Revision: 143475

URL: http://svn.digium.com/view/asterisk?view=rev&rev=143475
Log:
compare peer and chan instead of looking at the parked user (pu), which could have possibly already have been freed by the parking thread

Modified:
    branches/1.4/res/res_features.c

Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=143475&r1=143474&r2=143475
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Thu Sep 18 16:01:23 2008
@@ -465,7 +465,7 @@
 		ast_clear_flag(peer, AST_FLAG_MASQ_NOSTREAM);
 	}
 
-	if (pu->notquiteyet) {
+	if (peer == chan) { /* pu->notquiteyet = 1 */
 		/* Wake up parking thread if we're really done */
 		ast_indicate_data(pu->chan, AST_CONTROL_HOLD, 
 			S_OR(parkmohclass, NULL),




More information about the asterisk-commits mailing list