From: Anthony Minessale Date: Fri, 5 Feb 2010 02:46:45 +0000 (+0000) Subject: fix uuid_bridge issue X-Git-Tag: v1.0.6~538 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa9b1379cdf54188fd7c1712aed69df182371cf5;p=thirdparty%2Ffreeswitch.git fix uuid_bridge issue git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16574 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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();