mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 03:55:42 -04:00
[mpd] Add missing db_query_end (was causing database locks)
This commit is contained in:
parent
d43b306212
commit
100cecce3f
@ -885,7 +885,8 @@ mpd_command_stats(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
|||||||
|
|
||||||
ret = asprintf(errmsg, "Could not start query");
|
ret = asprintf(errmsg, "Could not start query");
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
DPRINTF(E_LOG, L_MPD, "Out of memory\n");
|
DPRINTF(E_LOG, L_MPD, "Out of memory\n");
|
||||||
|
|
||||||
return ACK_ERROR_UNKNOWN;
|
return ACK_ERROR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -896,10 +897,13 @@ mpd_command_stats(struct evbuffer *evbuf, int argc, char **argv, char **errmsg)
|
|||||||
|
|
||||||
ret = asprintf(errmsg, "Could not fetch query count");
|
ret = asprintf(errmsg, "Could not fetch query count");
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
DPRINTF(E_LOG, L_MPD, "Out of memory\n");
|
DPRINTF(E_LOG, L_MPD, "Out of memory\n");
|
||||||
|
|
||||||
return ACK_ERROR_UNKNOWN;
|
return ACK_ERROR_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
db_query_end(&qp);
|
||||||
|
|
||||||
artists = db_files_get_artist_count();
|
artists = db_files_get_artist_count();
|
||||||
albums = db_files_get_album_count();
|
albums = db_files_get_album_count();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user