]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix uuid_bridge issue
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Feb 2010 02:46:45 +0000 (02:46 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Feb 2010 02:46:45 +0000 (02:46 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16574 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index d4ed3ec1407f1397ad25773eeaf061ba77da78e9..de19eaef931fd53ccff73c511cc7b0764db040d7 100644 (file)
@@ -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();