diff options
author | Ryo Nakamura <upa@haeena.net> | 2023-03-25 22:29:09 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2023-03-25 22:29:09 +0900 |
commit | 834407379dfe4a3205259f08a02259458b6a6401 (patch) | |
tree | 777f0b6881790c4e663dc18dd0727843ca6016a1 /src/mscp.c | |
parent | 5ac087462106206b884f4d0a4f5dec0b630156ef (diff) |
fix error handling when scan thread failed.
set chunk pool to fill to invoke copy threads when scan failed.
Diffstat (limited to 'src/mscp.c')
-rw-r--r-- | src/mscp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -427,16 +427,14 @@ void *mscp_scan_thread(void *arg) list_splice_tail(&tmp, m->path_list.prev); } - chunk_pool_set_filled(&m->cp); - mpr_info(m->msg_fp, "walk source path(s) done\n"); - + chunk_pool_set_filled(&m->cp); m->ret_scan = 0; return NULL; err_out: + chunk_pool_set_filled(&m->cp); m->ret_scan = -1; - mscp_stop_copy_thread(m); return NULL; } |