]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7656 skip main file as well as chime file when hup is called during chime
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 24 Jun 2015 22:34:34 +0000 (17:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 24 Jun 2015 22:34:37 +0000 (17:34 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 169e38216230500b4cdb8864237b58bd68f2e746..686f41f6cb272ca43dd6c87102a994a494285f36 100644 (file)
@@ -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;
                                        }
                                }