From: Anthony Minessale Date: Fri, 2 Oct 2015 14:19:06 +0000 (-0500) Subject: FS-8282 #resolve [sleep is not interrupted by uuid_transfer] X-Git-Tag: v1.4.24~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6910afa3b7b52f69373b33b78fdf16391a71c46;p=thirdparty%2Ffreeswitch.git FS-8282 #resolve [sleep is not interrupted by uuid_transfer] --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index dfc487b91d..6b601e80f9 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -156,7 +156,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session, if (!switch_channel_media_ready(channel)) { - for (elapsed=0; switch_channel_up(channel) && elapsed<(ms/20); elapsed++) { + for (elapsed=0; switch_channel_ready(channel) && elapsed<(ms/20); elapsed++) { if (switch_channel_test_flag(channel, CF_BREAK)) { switch_channel_clear_flag(channel, CF_BREAK); switch_goto_status(SWITCH_STATUS_BREAK, end);