diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 13:03:03 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-25 13:03:03 +0000 |
commit | ff1510ceb94bc4808f78469bd63bf6855b1afa46 (patch) | |
tree | 23c4544e765e040f4e70a81505e521a545eb3290 | |
parent | 44efb9de24492accdf4a586535921d86519acd96 (diff) |
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/branches/1.4@71522 f38db490-d61c-443f-a65b-d21fe96a405b
-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 08c3f80bc..905a0d85d 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -992,7 +992,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. */ |