From f8835a817bad2d1cd35dc6bf5341f0b245cfd7fe Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 27 Apr 2011 09:48:28 -0500 Subject: [PATCH] FS-3271 --resolve --- 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 7d351791fd..2cd45b9e06 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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);