aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-17 14:48:16 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-17 14:48:16 +0000
commit68023e5772698ede94968008243182e678dd2438 (patch)
tree933e4a1bc21803ee82be215a5dae5341976ed093 /channels
parent6b4b4c491eccbffde6432cafe08b09af6cecdf45 (diff)
Small bug big fix for MGCP (bug #2888)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4277 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_mgcp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index e53eb6139..b428bcc1a 100755
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -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);