From f107ea54a8229575d5b2fa15d18fec3944ebee50 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 24 Jun 2015 17:34:34 -0500 Subject: [PATCH] FS-7656 skip main file as well as chime file when hup is called during chime --- src/mod/formats/mod_local_stream/mod_local_stream.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/formats/mod_local_stream/mod_local_stream.c b/src/mod/formats/mod_local_stream/mod_local_stream.c index 169e382162..686f41f6cb 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -358,10 +358,10 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void flush_video_queue(source->video_q); if (use_fh == &source->chime_fh) { source->chime_counter = source->rate * source->chime_freq; - use_fh = &fh; - goto retry; - //switch_core_file_close(&fh); + switch_core_file_close(&fh); + use_fh = &fh; } + goto retry; } }