output/httpd: use the IOThread
Do all I/O in the IOThread and not in the main thread. This solves an upcoming deadlock problem.
This commit is contained in:
parent
68fcc19565
commit
9bd4ed3e60
@ -28,7 +28,7 @@
|
||||
#include "Page.hxx"
|
||||
#include "IcyMetaDataServer.hxx"
|
||||
#include "system/fd_util.h"
|
||||
#include "Main.hxx"
|
||||
#include "IOThread.hxx"
|
||||
#include "util/Error.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "Log.hxx"
|
||||
@ -137,7 +137,7 @@ HttpdOutput::Init(const config_param ¶m, Error &error)
|
||||
static struct audio_output *
|
||||
httpd_output_init(const config_param ¶m, Error &error)
|
||||
{
|
||||
HttpdOutput *httpd = new HttpdOutput(*main_loop);
|
||||
HttpdOutput *httpd = new HttpdOutput(io_thread_get());
|
||||
|
||||
audio_output *result = httpd->InitAndConfigure(param, error);
|
||||
if (result == nullptr)
|
||||
|
Loading…
Reference in New Issue
Block a user