diff options
author | Mark Spencer <markster@digium.com> | 2004-11-17 14:48:16 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-11-17 14:48:16 +0000 |
commit | 7cc2ae0e404f957037ca851e0d0277719ac5921c (patch) | |
tree | 933e4a1bc21803ee82be215a5dae5341976ed093 /channels/chan_mgcp.c | |
parent | a085c07f898f68016ef28bf1928ce3acf14eba94 (diff) |
Small bug big fix for MGCP (bug #2888)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_mgcp.c')
-rwxr-xr-x | channels/chan_mgcp.c | 2 |
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); |