[pipe] Do not rely on the DATABASE event to be triggered during startup
to start listening on pipes
This commit is contained in:
parent
4274653624
commit
d90b869354
|
@ -925,7 +925,10 @@ init(void)
|
||||||
|
|
||||||
pipe_autostart = cfg_getbool(cfg_getsec(cfg, "library"), "pipe_autostart");
|
pipe_autostart = cfg_getbool(cfg_getsec(cfg, "library"), "pipe_autostart");
|
||||||
if (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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue