From fa9b1379cdf54188fd7c1712aed69df182371cf5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 5 Feb 2010 02:46:45 +0000 Subject: [PATCH] fix uuid_bridge issue git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16574 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index d4ed3ec140..de19eaef93 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -910,7 +910,7 @@ SWITCH_DECLARE(void) switch_channel_wait_for_state(switch_channel_t *channel, sw state = switch_channel_get_running_state(other_channel); mystate = switch_channel_get_running_state(channel); - if (mystate != ostate || state >= CS_HANGUP || mystate == want_state) { + if (mystate == want_state || state >= CS_HANGUP || mystate >= CS_HANGUP) { break; } switch_cond_next();