]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 Nov 2007 17:04:22 +0000 (17:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 Nov 2007 17:04:22 +0000 (17:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6276 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_local_stream/mod_local_stream.c

index 88a62054f4788ec62f3085896fcd37d876525d47..f082cc57551be0d14bea6ef91f5f14fd549e8eca 100644 (file)
@@ -97,7 +97,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "open directory: %s\n", source->location);
                switch_yield(1000000);
 
-               while((fname = switch_dir_next_file(source->dir_handle, file_buf, sizeof(file_buf)))) {
+               while(RUNNING && (fname = switch_dir_next_file(source->dir_handle, file_buf, sizeof(file_buf)))) {
                        switch_size_t olen;
                        uint8_t *abuf[SWITCH_RECOMMENDED_BUFFER_SIZE] =  {0};