mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 16:15:57 -05:00
[db] Fix adding urls to the queue that are not in the library
This commit is contained in:
parent
4ebc6da0ee
commit
88f7d4601d
4
src/db.c
4
src/db.c
@ -4268,8 +4268,8 @@ db_queue_add_by_query(struct query_params *qp, char reshuffle, uint32_t item_id)
|
|||||||
if (qp->results == 0)
|
if (qp->results == 0)
|
||||||
{
|
{
|
||||||
db_query_end(qp);
|
db_query_end(qp);
|
||||||
ret = -1;
|
db_transaction_end();
|
||||||
goto end_transaction;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (((ret = db_query_fetch_file(qp, &dbmfi)) == 0) && (dbmfi.id))
|
while (((ret = db_query_fetch_file(qp, &dbmfi)) == 0) && (dbmfi.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user