diff --git a/daemon/main.c b/daemon/main.c index 517c5a07a..5c6630da2 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1471,12 +1471,12 @@ static void create_everything(void) { rtpe_redis_write = rtpe_redis; } - if (websocket_init()) - die("Failed to init websocket listener"); - daemonize(); wpidfile(); + if (websocket_init()) + die("Failed to init websocket listener"); + homer_sender_init(&rtpe_config.homer_ep, rtpe_config.homer_protocol, rtpe_config.homer_id); rtcp_init(); // must come after Homer init