]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Minor tweak for queueing up the unhold frame... this will teach me to do bugs while...
authorJoshua Colp <jcolp@digium.com>
Mon, 25 Jun 2007 13:03:03 +0000 (13:03 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 25 Jun 2007 13:03:03 +0000 (13:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@71522 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 08c3f80bc7886bd567ac62c43ed29b075d8cdfb1..905a0d85d23b7744b91bf7d9317d14ff6d0f8bd1 100644 (file)
@@ -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. */