changeset 1562:4c8c041c8f5b

fixed writting metadata behavior at exit
author nadvornik
date Thu, 23 Apr 2009 21:15:14 +0000
parents d986a7727442
children 9e99bf609394
files src/utilops.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/utilops.c	Thu Apr 23 21:12:19 2009 +0000
+++ b/src/utilops.c	Thu Apr 23 21:15:14 2009 +0000
@@ -1626,8 +1626,9 @@
 
 			file_util_finalize_all(ud);
 			
+			/* both DISCARD and DONE finishes the operation for good */
 			if (ud->done_func)
-				ud->done_func((ud->phase == UTILITY_PHASE_DONE), ud->dest_path, ud->done_data);
+				ud->done_func((ud->phase != UTILITY_PHASE_CANCEL), ud->dest_path, ud->done_data);
 				
 			if (ud->with_sidecars)
 				file_data_sc_free_ci_list(ud->flist);