summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file_download.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-17 16:17:29 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-01 10:39:01 -0700
commit33fd77e9e43b0fa29cb484b72d910bdf0ecccbc8 (patch)
tree0ebd1c0615445af5e1321a85b6878087b4cb54a8 /src/lib/ecore_file/ecore_file_download.c
parent193149deb85004aeda452dd4d729f995f4f313f9 (diff)
ecore: move close_on_destructor to close_on_invalidate as that describe the behavior best.
Fix all use to correctly behave on invalidate.
Diffstat (limited to 'src/lib/ecore_file/ecore_file_download.c')
-rw-r--r--src/lib/ecore_file/ecore_file_download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_file/ecore_file_download.c b/src/lib/ecore_file/ecore_file_download.c
index 1323dbc8e6..54666693d2 100644
--- a/src/lib/ecore_file/ecore_file_download.c
+++ b/src/lib/ecore_file/ecore_file_download.c
@@ -230,14 +230,14 @@ ecore_file_download_full(const char *url,
230 efl_file_set(efl_added, dst, NULL), 230 efl_file_set(efl_added, dst, NULL),
231 efl_io_file_flags_set(efl_added, O_WRONLY | O_CREAT), 231 efl_io_file_flags_set(efl_added, O_WRONLY | O_CREAT),
232 efl_io_closer_close_on_exec_set(efl_added, EINA_TRUE), 232 efl_io_closer_close_on_exec_set(efl_added, EINA_TRUE),
233 efl_io_closer_close_on_destructor_set(efl_added, EINA_TRUE), 233 efl_io_closer_close_on_invalidate_set(efl_added, EINA_TRUE),
234 efl_io_file_mode_set(efl_added, 0644)); 234 efl_io_file_mode_set(efl_added, 0644));
235 EINA_SAFETY_ON_NULL_GOTO(job->output, error_output); 235 EINA_SAFETY_ON_NULL_GOTO(job->output, error_output);
236 236
237 job->copier = efl_add(EFL_IO_COPIER_CLASS, loop, 237 job->copier = efl_add(EFL_IO_COPIER_CLASS, loop,
238 efl_io_copier_source_set(efl_added, job->input), 238 efl_io_copier_source_set(efl_added, job->input),
239 efl_io_copier_destination_set(efl_added, job->output), 239 efl_io_copier_destination_set(efl_added, job->output),
240 efl_io_closer_close_on_destructor_set(efl_added, EINA_TRUE), 240 efl_io_closer_close_on_invalidate_set(efl_added, EINA_TRUE),
241 efl_event_callback_array_add(efl_added, ecore_file_download_copier_cbs(), job)); 241 efl_event_callback_array_add(efl_added, ecore_file_download_copier_cbs(), job));
242 EINA_SAFETY_ON_NULL_GOTO(job->copier, error_copier); 242 EINA_SAFETY_ON_NULL_GOTO(job->copier, error_copier);
243 243