mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Abuse _slave_thread() to run prng_auto_reseed() in the breaks
This commit is contained in:
parent
bf5a25ff45
commit
43155d7273
@ -54,6 +54,7 @@
|
||||
#include "logging.h"
|
||||
#include "source.h"
|
||||
#include "format.h"
|
||||
#include "prng.h"
|
||||
|
||||
#define CATMODULE "slave"
|
||||
|
||||
@ -901,6 +902,7 @@ static void *_slave_thread(void *arg)
|
||||
global_unlock();
|
||||
|
||||
thread_sleep(1000000);
|
||||
prng_auto_reseed();
|
||||
thread_mutex_lock(&_slave_mutex);
|
||||
if (slave_running == 0) {
|
||||
thread_mutex_unlock(&_slave_mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user