1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

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
This commit is contained in:
Michael Smith 2004-02-20 01:25:28 +00:00
parent 466a5cb60c
commit 92027f475b

View File

@ -461,6 +461,7 @@ static void *_stats_thread(void *arg)
thread_mutex_unlock(&_global_event_mutex);
}
if(global_event_queue == NULL) /* Only sleep if no events are pending */
thread_sleep(300000);
}