From d90b869354b01004f2047826fd0fe1287e104952 Mon Sep 17 00:00:00 2001 From: chme Date: Thu, 28 Dec 2017 16:05:03 +0100 Subject: [PATCH] [pipe] Do not rely on the DATABASE event to be triggered during startup to start listening on pipes --- src/inputs/pipe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/inputs/pipe.c b/src/inputs/pipe.c index 43115c49..f815e035 100644 --- a/src/inputs/pipe.c +++ b/src/inputs/pipe.c @@ -925,7 +925,10 @@ init(void) pipe_autostart = cfg_getbool(cfg_getsec(cfg, "library"), "pipe_autostart"); if (pipe_autostart) - CHECK_ERR(L_PLAYER, listener_add(pipe_listener_cb, LISTENER_DATABASE)); + { + pipe_listener_cb(0); + CHECK_ERR(L_PLAYER, listener_add(pipe_listener_cb, LISTENER_DATABASE)); + } return 0; }