From 4ac76c7c573df8a771dc9d6cb153afa087e6f2ca Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 30 Apr 2013 12:32:45 -0500 Subject: [PATCH] fix stopping of streams --- src/mod/formats/mod_local_stream/mod_local_stream.c | 1 + 1 file changed, 1 insertion(+) 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 040d0e5bc2..04e6d6ba10 100644 --- a/src/mod/formats/mod_local_stream/mod_local_stream.c +++ b/src/mod/formats/mod_local_stream/mod_local_stream.c @@ -375,6 +375,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void } else if(source->stop_request) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "local_stream://%s stopped.\n",source->name); source->stopped = 1; + goto done; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "local_stream://%s fully reloaded.\n",source->name); launch_streams(source->name);