From 88f7d4601d3bf80b9ef4c340429811eec5345bf4 Mon Sep 17 00:00:00 2001 From: chme Date: Wed, 13 Dec 2017 22:01:19 +0100 Subject: [PATCH] [db] Fix adding urls to the queue that are not in the library --- src/db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db.c b/src/db.c index f474e1a9..e7c9181f 100644 --- a/src/db.c +++ b/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) { 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))