[asterisk-commits] file: branch 1.4 r71412 - /branches/1.4/channels/chan_agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Jun 24 19:49:22 CDT 2007


Author: file
Date: Sun Jun 24 19:49:21 2007
New Revision: 71412

URL: http://svn.digium.com/view/asterisk?view=rev&rev=71412
Log:
Check to make sure the channel pointer is present before queueing up an unhold frame on it. (issue #10046 reported by dimas)

Modified:
    branches/1.4/channels/chan_agent.c

Modified: branches/1.4/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_agent.c?view=diff&rev=71412&r1=71411&r2=71412
==============================================================================
--- branches/1.4/channels/chan_agent.c (original)
+++ branches/1.4/channels/chan_agent.c Sun Jun 24 19:49:21 2007
@@ -992,7 +992,7 @@
 			ast_mutex_unlock(&p->lock);     /* For other thread to read the condition. */
 			return NULL;
 		}	
-	}
+	} else if (p->chan)
 		ast_indicate(p->chan, AST_CONTROL_UNHOLD);
 	p->owning_app = pthread_self();
 	/* After the above step, there should not be any blockers. */




More information about the asterisk-commits mailing list