Eliminate useless pass checking
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3062 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
dec424aa15
commit
92382cd7b9
|
@ -869,10 +869,8 @@ static void iax2_frame_free(struct iax_frame *fr)
|
|||
|
||||
static int iax2_queue_frame(int callno, struct ast_frame *f)
|
||||
{
|
||||
int pass =0;
|
||||
/* Assumes lock for callno is already held... */
|
||||
for (;;) {
|
||||
pass++;
|
||||
if (iaxs[callno] && iaxs[callno]->owner) {
|
||||
if (ast_mutex_trylock(&iaxs[callno]->owner->lock)) {
|
||||
/* Avoid deadlock by pausing and trying again */
|
||||
|
|
Reference in New Issue