Commit 92027f47 authored by Michael Smith's avatar Michael Smith

Patch for preventing stats from staying around too long - stats thread should

only go to sleep when it has nothing to do.

svn path=/trunk/icecast/; revision=5848
parent 466a5cb6
...@@ -461,7 +461,8 @@ static void *_stats_thread(void *arg) ...@@ -461,7 +461,8 @@ static void *_stats_thread(void *arg)
thread_mutex_unlock(&_global_event_mutex); thread_mutex_unlock(&_global_event_mutex);
} }
thread_sleep(300000); if(global_event_queue == NULL) /* Only sleep if no events are pending */
thread_sleep(300000);
} }
/* wake the other threads so they can shut down cleanly */ /* wake the other threads so they can shut down cleanly */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment