]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix stopping of streams
authorBrian West <brian@freeswitch.org>
Tue, 30 Apr 2013 17:32:45 +0000 (12:32 -0500)
committerBrian West <brian@freeswitch.org>
Tue, 30 Apr 2013 17:33:25 +0000 (12:33 -0500)
src/mod/formats/mod_local_stream/mod_local_stream.c

index 040d0e5bc2a9da7363a5b3ef5ba53c58f895e316..04e6d6ba1028a95920cd257f1546db34a036d79a 100644 (file)
@@ -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);