aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_agent.c3
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. */