[pipe] Do not rely on the DATABASE event to be triggered during startup

to start listening on pipes
This commit is contained in:
chme 2017-12-28 16:05:03 +01:00
parent 4274653624
commit d90b869354
1 changed files with 4 additions and 1 deletions

View File

@ -925,7 +925,10 @@ init(void)
pipe_autostart = cfg_getbool(cfg_getsec(cfg, "library"), "pipe_autostart");
if (pipe_autostart)
{
pipe_listener_cb(0);
CHECK_ERR(L_PLAYER, listener_add(pipe_listener_cb, LISTENER_DATABASE));
}
return 0;
}