]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8282 #resolve [sleep is not interrupted by uuid_transfer]
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 2 Oct 2015 14:19:06 +0000 (09:19 -0500)
committerMichael Jerris <mike@jerris.com>
Fri, 9 Oct 2015 17:02:57 +0000 (12:02 -0500)
src/switch_ivr.c

index dfc487b91ddf10b173d49ab901c1005bfead95cc..6b601e80f91c5b3bae159d17401da6adc75ba968 100644 (file)
@@ -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);