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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@33297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Joshua Colp 19 years ago
parent 5ccc5a9e53
commit c38c7a1f46

@ -5866,11 +5866,9 @@ static int auth_fail(int callno, int failcode)
ast_mutex_lock(&iaxsl[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);
ast_mutex_unlock(&iaxsl[callno]);

Loading…
Cancel
Save