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:
parent
466a5cb60c
commit
92027f475b
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user