Fix bug where LastFM session key in db was ignored

This commit is contained in:
ejurgensen 2014-09-08 23:13:12 +02:00
parent 2545aedc2a
commit 97910f3a99

View File

@ -816,7 +816,10 @@ lastfm_scrobble(int id)
return -1; return -1;
// No session key in mem or in db // No session key in mem or in db
if ((!g_session_key) || !(g_session_key = db_admin_get("lastfm_sk"))) if (!g_session_key)
g_session_key = db_admin_get("lastfm_sk");
if (!g_session_key)
{ {
DPRINTF(E_INFO, L_LASTFM, "No valid LastFM session key\n"); DPRINTF(E_INFO, L_LASTFM, "No valid LastFM session key\n");
g_disabled = 1; g_disabled = 1;