dect
/
asterisk
Archived
13
0
Fork 0

Fix locks that are held too long

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2527 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-03-22 22:48:59 +00:00
parent 08c400b688
commit 6f9bf4b161
1 changed files with 4 additions and 1 deletions

View File

@ -2325,8 +2325,11 @@ static int zt_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags,
oi2 = zt_get_index(c1, p1, 0);
oc1 = p0->owner;
oc2 = p1->owner;
if ((oi1 < 0) || (oi2 < 0))
if ((oi1 < 0) || (oi2 < 0)) {
ast_mutex_unlock(&c0->lock);
ast_mutex_unlock(&c1->lock);
return -1;
}