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:
ejurgensen
2017-12-28 16:45:39 +01:00
committed by GitHub

View File

@@ -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;
} }