diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 13:04:36 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 13:04:36 +0000 |
commit | 0d58f906de9c56198daa8eba38fe663b171a38ab (patch) | |
tree | 24b2fbe8802bf6879ef8508d952c45ba655dc9ea /channels/chan_agent.c | |
parent | 3fed67079318bbd681e41e480ad8716c49fbd8de (diff) |
Merged revisions 71522 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r71522 | file | 2007-06-25 09:03:03 -0400 (Mon, 25 Jun 2007) | 2 lines
Minor tweak for queueing up the unhold frame... this will teach me to do bugs while half asleep. (issue #10046 reported by dimas)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@71525 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_agent.c')
-rw-r--r-- | channels/chan_agent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index da862ebef..68b37e8f6 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -959,7 +959,8 @@ static struct ast_channel *agent_new(struct agent_pvt *p, int state) ast_mutex_unlock(&p->lock); /* For other thread to read the condition. */ return NULL; } - } else if (p->chan) + } + 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. */ |