]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10169: [mod_local_stream] When using local stream commands FreeSWITCH locks up...
authorBrian West <brian@freeswitch.org>
Thu, 20 Apr 2017 17:48:49 +0000 (12:48 -0500)
committerBrian West <brian@freeswitch.org>
Thu, 20 Apr 2017 17:48:49 +0000 (12:48 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 2bfdc601c32b3d4ebad9a4d5ee96dad22dbf82a3..2848835dd7daa6304315f489d147e0938e23f226 100644 (file)
@@ -765,6 +765,10 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "local_stream://%s fully reloaded.\n",source->name);
                                switch_thread_rwlock_unlock(source->rwlock);
                                source->full_reload = 0;
+                               source->part_reload = 0;
+                               if (source->timer.interval) {
+                                       switch_core_timer_destroy(&source->timer);
+                               }
                                launch_streams(source->name);
                                goto done;
                        }