From eb955f58118f06a2be90ff7eb076d87dd48540ba Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 4 Dec 2013 16:58:22 -0200 Subject: [PATCH] process: do not change update_id on skipped files. if we skipped a file it doesn't go to DB and thus we shouldn't mess with counter and thus update_id. It is the same case as the file was up to date. --- src/lib/lightmediascanner_process.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/lightmediascanner_process.c b/src/lib/lightmediascanner_process.c index 3d78ed1..92aa007 100644 --- a/src/lib/lightmediascanner_process.c +++ b/src/lib/lightmediascanner_process.c @@ -565,7 +565,9 @@ _slave_work(struct pinfo *pinfo) _slave_send_reply(fds, r); - if (r < 0 || r == LMS_PROGRESS_STATUS_UP_TO_DATE) + if (r < 0 || + (r == LMS_PROGRESS_STATUS_UP_TO_DATE || + r == LMS_PROGRESS_STATUS_SKIPPED)) continue; counter++; -- 2.7.4