mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 00:23:23 -05:00
Merge pull request #473 from chme/pipe
[pipe] Do not rely on the DATABASE event to be triggered during startup
This commit is contained in:
commit
7ff965ee76
@ -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)
|
||||||
|
{
|
||||||
|
pipe_listener_cb(0);
|
||||||
CHECK_ERR(L_PLAYER, listener_add(pipe_listener_cb, LISTENER_DATABASE));
|
CHECK_ERR(L_PLAYER, listener_add(pipe_listener_cb, LISTENER_DATABASE));
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user