]> 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)
committerMike Jerris <mike@jerris.com>
Tue, 30 May 2017 20:46:03 +0000 (16:46 -0400)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 3c8e5f72bf976b1088a02c4f8ebb1d2aa493d9fd..ed5f9ec9571de7cf0de4f700e20761ddfd3c60c4 100644 (file)
@@ -739,6 +739,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;
                        }