From ee29a2423d951dc8ba63c7d426f9e64a60670b7b Mon Sep 17 00:00:00 2001 From: Davide Andreoli Date: Tue, 18 May 2010 23:06:07 +0000 Subject: [PATCH] ecore_file_download(): Call the completion_cb (with error status) when a download is aborted SVN revision: 48988 --- legacy/ecore/src/lib/ecore_file/ecore_file_download.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_download.c b/legacy/ecore/src/lib/ecore_file/ecore_file_download.c index 94682c5ca0..70fdc680e5 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file_download.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file_download.c @@ -296,7 +296,8 @@ _ecore_file_download_curl(const char *url, const char *dst, #endif /** - * Abort the given download job + * Abort the given download job and call the @p completion_cb function with a + * @status of 1 (error) * @param job The download job to abort */ @@ -304,6 +305,8 @@ EAPI void ecore_file_download_abort(Ecore_File_Download_Job *job) { #ifdef BUILD_ECORE_CON + if (job->completion_cb) + job->completion_cb(ecore_con_url_data_get(job->url_con), job->dst, 1); # ifdef HAVE_CURL ecore_con_url_destroy(job->url_con); # endif