mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Small bug big fix for MGCP (bug #2888)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -580,6 +580,7 @@ static void mgcp_queue_frame(struct mgcp_subchannel *sub, struct ast_frame *f)
|
||||
if (!ast_mutex_trylock(&sub->owner->lock)) {
|
||||
ast_queue_frame(sub->owner, f);
|
||||
ast_mutex_unlock(&sub->owner->lock);
|
||||
break;
|
||||
} else {
|
||||
ast_mutex_unlock(&sub->lock);
|
||||
usleep(1);
|
||||
@@ -597,6 +598,7 @@ static void mgcp_queue_hangup(struct mgcp_subchannel *sub)
|
||||
if (!ast_mutex_trylock(&sub->owner->lock)) {
|
||||
ast_queue_hangup(sub->owner);
|
||||
ast_mutex_unlock(&sub->owner->lock);
|
||||
break;
|
||||
} else {
|
||||
ast_mutex_unlock(&sub->lock);
|
||||
usleep(1);
|
||||
|
Reference in New Issue
Block a user