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
commit 7ff965ee76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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