]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3271 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Apr 2011 14:48:28 +0000 (09:48 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 27 Apr 2011 14:48:28 +0000 (09:48 -0500)
src/switch_channel.c

index 7d351791fdba64729a01371113efabebfcbda560..2cd45b9e06ed50cafafd3e8f57e0b0db853a2c2c 100644 (file)
@@ -1198,7 +1198,7 @@ SWITCH_DECLARE(void) switch_channel_wait_for_state(switch_channel_t *channel, sw
        
        for (;;) {
                if ((channel->state == channel->running_state && channel->running_state == want_state) ||
-                       (other_channel && !switch_channel_ready(other_channel)) || !switch_channel_ready(channel)) {
+                       (other_channel && switch_channel_down(other_channel)) || switch_channel_down(channel)) {
                        break;
                }
                switch_yield(20000);