mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
[cache] Prevent log errors if cache disabled
This commit is contained in:
parent
d356a0ae5c
commit
0f58495e0d
@ -1679,7 +1679,11 @@ cache_artwork_get(int type, int64_t persistentid, int max_w, int max_h, int *cac
|
||||
int ret;
|
||||
|
||||
if (!g_initialized)
|
||||
return -1;
|
||||
{
|
||||
*cached = 0;
|
||||
*format = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
command_init(&cmd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user