Merged revisions 33297 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r33297 | file | 2006-06-09 15:26:42 -0300 (Fri, 09 Jun 2006) | 2 lines

Remove an unneeded double lock (issue #7310 reported by arkadia)

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@33298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp 2006-06-09 18:29:58 +00:00
parent 5349ae6f46
commit 6723184a62
1 changed files with 0 additions and 2 deletions

View File

@ -5815,11 +5815,9 @@ static int auth_fail(int callno, int failcode)
if (iaxs[callno]) {
iaxs[callno]->authfail = failcode;
if (delayreject) {
ast_mutex_lock(&iaxsl[callno]);
if (iaxs[callno]->authid > -1)
ast_sched_del(sched, iaxs[callno]->authid);
iaxs[callno]->authid = ast_sched_add(sched, 1000, auth_reject, (void *)(long)callno);
ast_mutex_unlock(&iaxsl[callno]);
} else
auth_reject((void *)(long)callno);
}