]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
forgot some code
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 8 Jul 2008 19:26:44 +0000 (19:26 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 8 Jul 2008 19:26:44 +0000 (19:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8933 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 6aff95885d246af8719b1c60c4cc7601bb47682f..f3d8d574ff70ae773ed962c1082ebcbe913338c4 100644 (file)
@@ -55,6 +55,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
                        status = SWITCH_STATUS_FALSE;
                        break;
                }
+               
+               if (switch_channel_test_flag(channel, CF_BREAK)) {
+                       switch_channel_clear_flag(channel, CF_BREAK);
+                       status = SWITCH_STATUS_BREAK;
+                       break;
+               }
 
                if (now > done || left <= 0) {
                        break;