From: Brian West Date: Thu, 20 Apr 2017 17:48:49 +0000 (-0500) Subject: FS-10169: [mod_local_stream] When using local stream commands FreeSWITCH locks up... X-Git-Tag: v1.8.0~585 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a72e59f01efceb666ccafc2e77c7001b581ccfc;p=thirdparty%2Ffreeswitch.git FS-10169: [mod_local_stream] When using local stream commands FreeSWITCH locks up #resolve --- 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 2bfdc601c3..2848835dd7 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -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; }