Unlock the dial operation lock on a failed dial
If a dial operation fails, the pbx_outgoing_attempt routine will exit without first having unlocked the outgoing dial lock. This would be a "bad thing". git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396521 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
20bf856ba4
commit
fba429409e
|
@ -9983,6 +9983,7 @@ static int pbx_outgoing_attempt(const char *type, struct ast_format_cap *cap, co
|
|||
ast_cond_wait(&outgoing->cond, &outgoing->lock);
|
||||
|
||||
if (outgoing->dial_res != AST_DIAL_RESULT_ANSWERED) {
|
||||
ast_mutex_unlock(&outgoing->lock);
|
||||
/* The dial operation failed. */
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue