[db] Fix adding urls to the queue that are not in the library

This commit is contained in:
chme 2017-12-13 22:01:19 +01:00
parent 4ebc6da0ee
commit 88f7d4601d

View File

@ -4268,8 +4268,8 @@ db_queue_add_by_query(struct query_params *qp, char reshuffle, uint32_t item_id)
if (qp->results == 0)
{
db_query_end(qp);
ret = -1;
goto end_transaction;
db_transaction_end();
return 0;
}
while (((ret = db_query_fetch_file(qp, &dbmfi)) == 0) && (dbmfi.id))