[asterisk-commits] jpeeler: branch jpeeler/bug12269 r148111 - /team/jpeeler/bug12269/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 9 18:13:39 CDT 2008
Author: jpeeler
Date: Thu Oct 9 18:13:38 2008
New Revision: 148111
URL: http://svn.digium.com/view/asterisk?view=rev&rev=148111
Log:
this more closely resembles the original behavior, although I'm wondering if all the locking is not necessary
Modified:
team/jpeeler/bug12269/channels/chan_agent.c
Modified: team/jpeeler/bug12269/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/team/jpeeler/bug12269/channels/chan_agent.c?view=diff&rev=148111&r1=148110&r2=148111
==============================================================================
--- team/jpeeler/bug12269/channels/chan_agent.c (original)
+++ team/jpeeler/bug12269/channels/chan_agent.c Thu Oct 9 18:13:38 2008
@@ -1087,6 +1087,9 @@
* implemented in the kernel for this.
*/
p->app_sleep_cond = 0;
+ ast_mutex_lock(&p->app_lock)
+ p->app_lock_flag = 1;
+ ast_mutex_unlock(&p->app_lock)
if(ast_strlen_zero(p->loginchan) && !p->app_lock_flag) {
if (p->chan) {
ast_queue_frame(p->chan, &ast_null_frame);
More information about the asterisk-commits
mailing list