if (rh->fh) {
switch_core_file_close(rh->fh);
- }
-
- if (rh->fh->samples_out < read_impl.samples_per_second * 3) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Discarding short file %s\n", rh->file);
- switch_file_remove(rh->file, switch_core_session_get_pool(session));
+ if (rh->fh->samples_out < read_impl.samples_per_second * 3) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Discarding short file %s\n", rh->file);
+ switch_file_remove(rh->file, switch_core_session_get_pool(session));
+ }
}
}