From 0c3f80d4a6e3ae534f928d142c2125113c456688 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 4 Dec 2013 16:59:13 -0200 Subject: [PATCH 1/1] process: properly report status for dual-process mode. we should report the status we got in "reply", such as processed, uptodate, skipped... not the return of _master_recv_reply() that is 1 during timeout or 0 on success (everything was being reported as 0 (LMS_PROGRESS_STATUS_UP_TO_DATE). --- src/lib/lightmediascanner_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lightmediascanner_process.c b/src/lib/lightmediascanner_process.c index 92aa007..2302303 100644 --- a/src/lib/lightmediascanner_process.c +++ b/src/lib/lightmediascanner_process.c @@ -844,7 +844,7 @@ _process_file(struct cinfo *info, int base, char *path, const char *name) info, path, new_len, LMS_PROGRESS_STATUS_ERROR_PARSE); return reply; } - _report_progress(info, path, new_len, r); + _report_progress(info, path, new_len, reply); return reply; } } -- 2.7.4