mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Eliminate useless pass checking
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
Block a user