]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4101 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 11 Apr 2012 13:39:01 +0000 (08:39 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 11 Apr 2012 13:39:01 +0000 (08:39 -0500)
src/switch_ivr_play_say.c

index a29f4c6f22adc6a84ed1d6dd6bfa4a09ccc4549a..fdd67f1de5839bf5b0c24e75953a37c9f1f3e66d 100644 (file)
@@ -1113,7 +1113,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
                if (cur) {
                        fh->samples = sample_start = 0;
                        if (sleep_val_i) {
-                               switch_ivr_sleep(session, sleep_val_i, SWITCH_FALSE, args);
+                               status = switch_ivr_sleep(session, sleep_val_i, SWITCH_FALSE, args);
+                                if(status != SWITCH_STATUS_SUCCESS) {
+                                        break;
+                                }
                        }
                }