From: Anthony Minessale Date: Wed, 24 Jun 2015 22:34:34 +0000 (-0500) Subject: FS-7656 skip main file as well as chime file when hup is called during chime X-Git-Tag: v1.6.2~384 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f107ea54a8229575d5b2fa15d18fec3944ebee50;p=thirdparty%2Ffreeswitch.git FS-7656 skip main file as well as chime file when hup is called during chime --- 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; } }