playlist: Despotify plugin: Correct init in daemon mode

There is a global despotify session, so it should not be initialized
until needed.
This commit is contained in:
Simon Kagstrom 2011-04-05 07:41:01 +02:00 committed by Max Kellermann
parent 99640171e2
commit 77b6e27500

View File

@ -100,7 +100,7 @@ parse_playlist(struct despotify_playlist *ctx,
static bool
despotify_playlist_init(G_GNUC_UNUSED const struct config_param *param)
{
return mpd_despotify_get_session() != NULL;
return true;
}
static void