1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Feature: Abuse _slave_thread() to run prng_auto_reseed() in the breaks

This commit is contained in:
Philipp Schafft 2020-10-22 08:25:43 +00:00
parent bf5a25ff45
commit 43155d7273

View File

@ -54,6 +54,7 @@
#include "logging.h" #include "logging.h"
#include "source.h" #include "source.h"
#include "format.h" #include "format.h"
#include "prng.h"
#define CATMODULE "slave" #define CATMODULE "slave"
@ -901,6 +902,7 @@ static void *_slave_thread(void *arg)
global_unlock(); global_unlock();
thread_sleep(1000000); thread_sleep(1000000);
prng_auto_reseed();
thread_mutex_lock(&_slave_mutex); thread_mutex_lock(&_slave_mutex);
if (slave_running == 0) { if (slave_running == 0) {
thread_mutex_unlock(&_slave_mutex); thread_mutex_unlock(&_slave_mutex);