From 00a8f508719ae4e617d7abb99d36f19380117206 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sun, 11 Mar 2007 03:07:58 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4510 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 3e3fc121f7..514b33ccb1 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -538,10 +538,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se fh->silence_hits = org_silence_hits; } } - + if (!switch_test_flag(fh, SWITCH_FILE_PAUSE)) { len = (switch_size_t) read_frame->datalen / 2; - switch_core_file_write(fh, read_frame->data, &len); + if (switch_core_file_write(fh, read_frame->data, &len) != SWITCH_STATUS_SUCCESS) { + break; + } } }