dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2004-05-25 00:23:02 +00:00
parent dec424aa15
commit 92382cd7b9
1 changed files with 0 additions and 2 deletions

View File

@ -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 */